aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/js/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index b68b608..dce3a60 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -136,6 +136,9 @@ function uploadFiles(files) {
136 app.uploadStatus.percentDone = 0; 136 app.uploadStatus.percentDone = 0;
137 137
138 asyncForEach(files, function (file, callback) { 138 asyncForEach(files, function (file, callback) {
139 // do not handle directories (file.type is empty in such a case)
140 if (file.type === '') return callback();
141
139 var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name))); 142 var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name)));
140 143
141 var formData = new FormData(); 144 var formData = new FormData();