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.

file name escape uri

chrisluaae82dca6f18
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 2369f8e879..ef9ef75fb8 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -319,7 +319,7 @@
if (!baseUrl.endsWith('/')) {
baseUrl += '/';
}
- var url = baseUrl + dirName;
+ var url = baseUrl + encodeURIComponent(dirName);
if (!url.endsWith('/')) {
url += '/';
}
@@ -335,7 +335,7 @@
if (newName == null || newName == '') {
return;
}
- var url = basePath + newName;
+ var url = basePath + encodeURIComponent(newName);
var originPath = basePath + originName;
url += '?mv.from=' + originPath;
var xhr = new XMLHttpRequest();