Commit 3df9f8a6 by Johannes Zellner

Do not error if a user tries to upload a file without a type

1 parent 19efa5bc
Showing with 3 additions and 0 deletions
......@@ -136,6 +136,9 @@ function uploadFiles(files) {
app.uploadStatus.percentDone = 0;
asyncForEach(files, function (file, callback) {
// do not handle directories (file.type is empty in such a case)
if (file.type === '') return callback();
var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name)));
var formData = new FormData();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!