Skip to content

Commit

Permalink
Fixed #1994 - incorrect MPU threshold (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncwik authored Aug 28, 2024
1 parent eab5f2c commit 48517d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-put-object.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (c *Client) putObjectCommon(ctx context.Context, bucketName, objectName str
return c.putObjectMultipartStreamNoLength(ctx, bucketName, objectName, reader, opts)
}

if size < int64(partSize) || opts.DisableMultipart {
if size <= int64(partSize) || opts.DisableMultipart {
return c.putObject(ctx, bucketName, objectName, reader, size, opts)
}

Expand Down

0 comments on commit 48517d8

Please sign in to comment.