diff --git a/api-put-object.go b/api-put-object.go index a792cfe39..dbb476a97 100644 --- a/api-put-object.go +++ b/api-put-object.go @@ -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) }