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.

set file name to base file name

Chris Lufc3924ac70db
diff --git a/weed/operation/submit.go b/weed/operation/submit.go
index 349cddfce8..b81f645936 100644
--- a/weed/operation/submit.go
+++ b/weed/operation/submit.go
@@ -104,7 +104,7 @@ func newFilePart(fullPathFilename string) (ret FilePart, err error) {
ret.FileSize = fi.Size()
ext := strings.ToLower(path.Ext(fullPathFilename))
ret.IsGzipped = ext == ".gz"
- ret.FileName = fullPathFilename
+ ret.FileName = fi.Name()
if ext != "" {
ret.MimeType = mime.TypeByExtension(ext)
}