aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-19 20:40:23 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-09-19 20:40:23 +0200
commit08a328892aced1c7e81e67f08b4da617b8b64976 (patch)
tree397e5bec2564ad98f6903cdab00a6ca6802fd421
parent5cc7dd8922747b1626213640461818991360edb1 (diff)
downloadnextcloud-server-08a328892aced1c7e81e67f08b4da617b8b64976.tar.gz
nextcloud-server-08a328892aced1c7e81e67f08b4da617b8b64976.zip
Allow uploading empty files (#26135)
-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 3257ded7b89..c4b3d25d1ee 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';