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
Fix the first form multi-part item is not a "file type part" problem in "ParseUpload()"
yourchanges7481b7376d03
diff --git a/go/storage/needle.go b/go/storage/needle.goindex 11610dd802..a24169c000 100644--- a/go/storage/needle.go+++ b/go/storage/needle.go@@ -60,11 +60,20 @@ func ParseUpload(r *http.Request) (fileName string, data []byte, mimeType stringreturn}part, fe := form.NextPart()- if fe != nil {- glog.V(0).Infoln("Reading Multi part [ERROR]", fe)- e = fe- return+ for {+ if fe != nil {+ glog.V(0).Infoln("Reading Multi part [ERROR]", fe)+ e = fe+ return+ }++ if part.FileName() != "" {+ break //found the first <file type> multi-part+ }++ part, fe = form.NextPart()}+fileName = part.FileName()if fileName != "" {fileName = path.Base(fileName)