diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-07 21:59:18 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-07 21:59:18 +0100 |
commit | e14054610f3dcb672370158da87f4db3c0e43552 (patch) | |
tree | 83c4ec2429165f9696468461109bd7caa503e3d4 /apps | |
parent | 250f40fe407f8c7fe38776b7b38f883ffd40b836 (diff) | |
download | nextcloud-server-e14054610f3dcb672370158da87f4db3c0e43552.tar.gz nextcloud-server-e14054610f3dcb672370158da87f4db3c0e43552.zip |
Revert "fix blocking drag & drop upload of folders"
Fixes #150
This reverts commit 5b2f3c7f72a002b38da31a6748c0de22cb335203.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 16f7c966067..e54d4d7b74f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -201,7 +201,7 @@ $(document).ready(function() { var totalSize=0; if(files){ for(var i=0;i<files.length;i++){ - if(files[i].size ==0 || files[i].type== '') + if(files[i].size ==0 && files[i].type== '') { OC.dialogs.alert(t('files', 'Unable to upload your file as it is a directory or has 0 bytes'), t('files', 'Upload Error')); return; @@ -274,7 +274,7 @@ $(document).ready(function() { var fileName = files[i].name var dropTarget = $(e.originalEvent.target).closest('tr'); if(dropTarget && dropTarget.attr('data-type') === 'dir') { // drag&drop upload to folder - var dirName = dropTarget.attr('data-file'); + var dirName = dropTarget.attr('data-file') var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i], formData: function(form) { var formArray = form.serializeArray(); |