Skip to content

Upload() should use PutObject API for uploading smaller objects #2593

@AllanZhengYP

Description

@AllanZhengYP

Is your feature request related to a problem? Please describe.

As pointed out in #2581, the upload() in @aws-sdk/lib-storage always uses S3's multipart upload API. Users may use it for all kinds of usecases. However, the multipart upload API makes excessive amount of API calls compared to S3 PutObject API, especially when users only upload smaller objects.

Describe the solution you'd like

upload() should use only PutObject for object's size is detectable and smaller than given threshold.

Describe alternatives you've considered

Document the difference of upload() and s3.putObject() better -- this is not ideal experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions