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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
avoid auto unzip tar.gz files
chrislusf4ee766e966ab
diff --git a/go/storage/needle.go b/go/storage/needle.goindex e4994da3f0..85806f3cbb 100644--- a/go/storage/needle.go+++ b/go/storage/needle.go@@ -126,7 +126,8 @@ func ParseUpload(r *http.Request) (fileName string, data []byte, mimeType stringif ext == ".gz" {isGzipped = true}- if strings.HasSuffix(fileName, ".gz") {+ if strings.HasSuffix(fileName, ".gz") &&+ !strings.HasSuffix(fileName, ".tar.gz") {fileName = fileName[:len(fileName)-3]}modifiedTime, _ = strconv.ParseUint(r.FormValue("ts"), 10, 64)