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.

Bug Fix: force reload filer page when upload/delete/rename/create directory

yulai.li83f8cdd5cb23
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 785f828877..f9c35440ee 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -225,6 +225,10 @@
handleFiles(files);
}
+ function reloadPage() {
+ window.location.reload(true);
+ }
+
var uploadList = {};
function handleFiles(files) {
@@ -277,7 +281,7 @@
}
if (allFinish) {
console.log('All Finish');
- window.location.reload();
+ reloadPage();
}
}
@@ -318,7 +322,7 @@
xhr.open('POST', url, false);
xhr.setRequestHeader('Content-Type', '');
xhr.send();
- window.location.reload();
+ reloadPage();
}
function handleRename(originName, basePath) {
@@ -333,7 +337,7 @@
xhr.open('POST', url, false);
xhr.setRequestHeader('Content-Type', '');
xhr.send();
- window.location.reload();
+ reloadPage();
}
function handleDelete(path) {
@@ -348,7 +352,7 @@
var xhr = new XMLHttpRequest();
xhr.open('DELETE', url, false);
xhr.send();
- window.location.reload();
+ reloadPage();
}
</script>
</html>