Skip to content

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.

fix bug found by tests

Chris Lu2579edbc6088
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 60fc0c0491..df46627c36 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -88,6 +88,7 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader,
err = fmt.Errorf("read input: %v", err)
return
}
+ data = buf.Bytes()
}
uploadResult, uploadErr := retriedUploadData(uploadUrl, filename, cipher, data, isInputCompressed, mtype, pairMap, jwt)
return uploadResult, uploadErr, data