diff options
author | Johannes Zellner <johannes@cloudron.io> | 2018-05-18 21:07:53 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2018-05-18 21:07:53 +0200 |
commit | 35355283872739fb9bd150cf42a40a1a23b1674d (patch) | |
tree | d3bff4a615e57a1b69547d4437e7a8f438cdb348 /frontend/js | |
parent | 09d1f4f5e8ae9b4bd65c6241a9c6cdfaeed200fa (diff) | |
download | Surfer-35355283872739fb9bd150cf42a40a1a23b1674d.tar.gz Surfer-35355283872739fb9bd150cf42a40a1a23b1674d.tar.zst Surfer-35355283872739fb9bd150cf42a40a1a23b1674d.zip |
Support uploading whole folder trees
Diffstat (limited to 'frontend/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); |