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
only detect when not sure about the types
Chris Lu3f1d79512fbd
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.goindex f582c42792..d4a334f050 100644--- a/weed/operation/upload_content.go+++ b/weed/operation/upload_content.go@@ -79,7 +79,7 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, iif !isInputGzipped {if shouldBeZipped, iAmSure := util.IsGzippableFileType(filepath.Base(filename), mtype); iAmSure && shouldBeZipped {shouldGzipNow = true- } else if mtype == "" && len(data) > 128 {+ } else if !iAmSure && mtype == "" && len(data) > 128 {var compressed []bytecompressed, err = util.GzipData(data[0:128])shouldGzipNow = len(compressed)*10 < 128*9 // can not compress to less than 90%