diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-26 17:40:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-26 17:40:53 +0200 |
commit | 6b2920a6bc6c24ba036f98558c291b665e5fb1d9 (patch) | |
tree | 798f3c0bc173559cecafd2195fef726b1b3776dd /apps/files/js | |
parent | 3e4a4cab3459e9ae8254878f97666ed49a411d80 (diff) | |
parent | e8836bfd3005f0c81519ab42b6a5088c9031c427 (diff) | |
download | nextcloud-server-6b2920a6bc6c24ba036f98558c291b665e5fb1d9.tar.gz nextcloud-server-6b2920a6bc6c24ba036f98558c291b665e5fb1d9.zip |
Merge pull request #1520 from nextcloud/upload-allow-zero
Allow uploading empty files (#26113)
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/file-upload.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 05224264c19..56ea384c9e0 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -347,10 +347,6 @@ OC.Upload = { //file is a directory dirUploadFailure = true; } - if (file.size === 0) { - // file is empty or a directory - dirUploadFailure = true; - } if (dirUploadFailure) { data.textStatus = 'dirorzero'; |