Merge pull request #250 from n8225/fixS3MultiPartUpload

Fix s3 100MB max upload issue.
This commit is contained in:
Andrea Spacca
2019-08-24 17:12:22 +02:00
committed by GitHub
2 changed files with 1 additions and 2 deletions

View File

@ -243,9 +243,7 @@ func (s *S3Storage) Put(token string, filename string, reader io.Reader, content
// Create an uploader with the session and custom options
uploader := s3manager.NewUploader(s.session, func(u *s3manager.Uploader) {
u.PartSize = (1 << 20) * 5 // The minimum/default allowed part size is 5MB
u.Concurrency = concurrency // default is 5
u.MaxUploadParts = concurrency
u.LeavePartsOnError = false
})