summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-15 18:58:18 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:28:05 +0200
commite8836bfd3005f0c81519ab42b6a5088c9031c427 (patch)
tree7f276fe5ecb19e3ed3f148c76ec8a7afae7e0beb
parent244de6451b22a1288d3ef698f48fb9c4e78bf15f (diff)
downloadnextcloud-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.js4
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';