Skip to content

Commit

Permalink
chore: add min part size todo
Browse files Browse the repository at this point in the history
  • Loading branch information
imstevez committed Sep 8, 2023
1 parent df7cb3d commit 568e64b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions s3/services/object/service_multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ func (s *service) CompleteMultiPartUpload(ctx context.Context, user, bucname, ob
}

// All parts except the last part has to be at least 5MB.
// todo: change to '''!(gotPart.Size >= consts.MinPartSize)'''
if (i < len(parts)-1) && !(gotPart.Size >= 0) {
err = s3utils.PartTooSmall{
PartNumber: part.PartNumber,
Expand Down

0 comments on commit 568e64b

Please sign in to comment.