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(filer-ui): support folder creation with JWT token in URL (#7271)

littlemilkwu0653394ec670
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 627f3ba77d..be0eea8fd1 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -315,7 +315,7 @@
if (dirName == null || dirName == '') {
return;
}
- var baseUrl = window.location.href;
+ var baseUrl = window.location.origin + window.location.pathname;
if (!baseUrl.endsWith('/')) {
baseUrl += '/';
}
@@ -323,6 +323,7 @@
if (!url.endsWith('/')) {
url += '/';
}
+ url += window.location.search;
var xhr = new XMLHttpRequest();
xhr.open('POST', url, false);
xhr.setRequestHeader('Content-Type', '');