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: correct chunk size in encrypted uploads (fixes #8151) (#8154)

Chris Luc52d3d122919
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 56c3581744..9f96c851a5 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -292,7 +292,7 @@ func (uploader *Uploader) doUploadData(ctx context.Context, data []byte, option
uploadResult.Name = option.Filename
uploadResult.Mime = option.MimeType
uploadResult.CipherKey = cipherKey
- uploadResult.Size = uint32(len(data))
+ uploadResult.Size = uint32(clearDataLen)
if contentIsGzipped {
uploadResult.Gzip = 1
}