workaround to avoid temp filename after upload
Massimo Melina committed
Feb 20, 2023 at 23:39 UTC
9f653f76ca1ec7af5d4694c2b61e4271694a1ae1
1 file changed
+1
-1
frontend/src/upload.ts
+1
-1
@@ -306,7 +306,7 @@ async function startUpload(f: File, to: string, resume=0) {
306
if (!qs[0].files.length)
307
qs.shift()
308
if (qs.length) return
309
- reloadList()
309
+ setTimeout(reloadList, 500) // workaround: reloading too quickly can meet the new file still with its temp name
310
reloadOnClose = false
311
}
312
}