From 4cd47601c5f6031bdaecb7c4d4789b498bd3a437 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Fri, 5 Mar 2021 22:22:57 +0530 Subject: [PATCH] Change maxPartsSize to 40000 and chunk to 16M --- s3/container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/s3/container.go b/s3/container.go index 6bcfe1a..343993e 100644 --- a/s3/container.go +++ b/s3/container.go @@ -136,7 +136,8 @@ func (c *container) Put(name string, r io.Reader, size int64, metadata map[strin // based on the total size, because by default only 10,000 parts are allowed // TotalPartsExceeded: exceeded total allowed configured MaxUploadParts (10000) _, err = uploader.Upload(upParams, func(u *s3manager.Uploader) { - u.PartSize = 64 * 1024 * 1024 // 64MB part size + u.PartSize = 16 * 1024 * 1024 // 64MB part size + u.MaxUploadParts = 40000 }) if err != nil {