diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-09-15 18:58:18 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:28:05 +0200 |
commit | e8836bfd3005f0c81519ab42b6a5088c9031c427 (patch) | |
tree | 7f276fe5ecb19e3ed3f148c76ec8a7afae7e0beb | |
parent | 244de6451b22a1288d3ef698f48fb9c4e78bf15f (diff) | |
download | nextcloud-server-e8836bfd3005f0c81519ab42b6a5088c9031c427.tar.gz nextcloud-server-e8836bfd3005f0c81519ab42b6a5088c9031c427.zip |
Allow uploading empty files (#26113)
Downstreaming of https://github.com/owncloud/core/pull/26113
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-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 e07093dd17b..69a39d37079 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'; |