From 01eda4aa23623cceec066a83b2b19bd6f12be90d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 27 Feb 2024 04:31:55 -0500 Subject: [PATCH] fix: need to pass content length --- api/s5/s5.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 644b2b8..efc231a 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -1679,9 +1679,10 @@ func (s *S5API) pinImportCronJob(cid string, url string, proofUrl string, userId }(verifier) _, err = client.PutObject(ctx, &s3.PutObjectInput{ - Bucket: aws.String(s.config.Config().Core.Storage.S3.BufferBucket), - Key: aws.String(cid), - Body: verifier, + Bucket: aws.String(s.config.Config().Core.Storage.S3.BufferBucket), + Key: aws.String(cid), + Body: verifier, + ContentLength: aws.Int64(int64(parsedCid.Size)), }) if err != nil { return err