fix: (regression 0.51.0) faulty folders upload #631
Massimo Melina committed
Jun 19, 2024 at 10:52 UTC
f783cbb1c05e7ab00697c9f7a2db236a4d055da9
1 file changed
+1
-1
frontend/src/upload.ts
+1
-1
@@ -334,7 +334,7 @@ async function startUpload(toUpload: ToUpload, to: string, resume=0) {
334
let uploadPath = path(toUpload.file)
335
if (toUpload.name)
336
uploadPath = prefix('', dirname(uploadPath), '/') + toUpload.name
337
- req.open('PUT', to + encodeURIComponent(uploadPath) + buildUrlQueryString({
337
+ req.open('PUT', to + encodeURI(uploadPath) + buildUrlQueryString({
338
notificationChannel,
339
...resume && { resume: String(resume) },
340
...toUpload.comment && { comment: toUpload.comment },