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
adjust error message
Chris Luab6e5c0dc482
diff --git a/weed/storage/needle/needle_parse_upload.go b/weed/storage/needle/needle_parse_upload.goindex d97ca31019..4d244046e9 100644--- a/weed/storage/needle/needle_parse_upload.go+++ b/weed/storage/needle/needle_parse_upload.go@@ -90,7 +90,7 @@ func ParseUpload(r *http.Request, sizeLimit int64) (pu *ParsedUpload, e error) {pu.ContentMd5 = base64.StdEncoding.EncodeToString(h.Sum(nil))if expectedChecksum := r.Header.Get("Content-MD5"); expectedChecksum != "" {if expectedChecksum != pu.ContentMd5 {- e = fmt.Errorf("Content-MD5 did not match md5 of file data [%s] != [%s]", expectedChecksum, pu.ContentMd5)+ e = fmt.Errorf("Content-MD5 did not match md5 of file data expected [%s] received [%s] size %d", expectedChecksum, pu.ContentMd5, len(pu.UncompressedData))return}}