diff options
Diffstat (limited to 'frontend/js/app.js')
-rw-r--r-- | frontend/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js index 8970a0f..4cb57e3 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js | |||
@@ -136,7 +136,7 @@ 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 | var path = encode(sanitize(app.path + '/' + file.name)); | 139 | var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name))); |
140 | 140 | ||
141 | var formData = new FormData(); | 141 | var formData = new FormData(); |
142 | formData.append('file', file); | 142 | formData.append('file', file); |