Skip to content

add IfMatch and IfNoneMatch to S3Transfer.ALLOWED_UPLOAD_ARGS #4366

Description

@rittneje

Describe the feature

put_object and complete_multipart_upload both accept optional args IfMatch and IfNoneMatch. However, there is no way to currently pass these to upload_file since these parameters are missing from S3Transfer.ALLOWED_UPLOAD_ARGS.

Use Case

They need to be there so we can for example enforce that IfNoneMatch: "*" was specified to prevent overwriting existing files when using upload_file, as described here.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

n/a

Environment details (OS name and version, etc.)

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestThis issue requests a feature.p3This is a minor priority issues3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions