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 S3 API multipart upload on Windows (#4666)

Henco Appel89542db2d0b1
diff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.go
index 414ba4bb2c..3cf0971f6e 100644
--- a/weed/s3api/filer_multipart.go
+++ b/weed/s3api/filer_multipart.go
@@ -122,7 +122,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa
}
entryName := filepath.Base(*input.Key)
- dirName := filepath.Dir(*input.Key)
+ dirName := filepath.ToSlash(filepath.Dir(*input.Key))
if dirName == "." {
dirName = ""
}