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
mimee type default "application/octet-stream" to empty string
Chris Lu8c3e25b38a66
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.goindex 8c01cfd740..fa948249ad 100644--- a/weed/command/filer_copy.go+++ b/weed/command/filer_copy.go@@ -493,9 +493,12 @@ func detectMimeType(f *os.File) string {}if err != nil {fmt.Printf("read head of %v: %v\n", f.Name(), err)- return "application/octet-stream"+ return ""}f.Seek(0, io.SeekStart)mimeType := http.DetectContentType(head[:n])+ if mimeType == "application/octet-stream" {+ return ""+ }return mimeType}