Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Fix reload page before all file uploaded bug (#3534)

Rain Li089446f5b16a
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 217802dd9c..2369f8e879 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -288,12 +288,12 @@
function uploadFile(file, i) {
var url = window.location.href;
var xhr = new XMLHttpRequest();
+ var fileName = file.name;
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE) {
- location.reload();
+ finishUpload(fileName)
}
}
- var fileName = file.name;
xhr.upload.addEventListener('progress', function(e) {
if (e.lengthComputable) {
var percent = Math.ceil((e.loaded / e.total) * 100);