Skip to content

Support nonseekable streams for UploadPartRequest.InputStream #4010

@StephenCleary

Description

@StephenCleary

Describe the feature

In the scenario where DisablePayloadSigning is true, the UploadPartRequest.InputStream should support nonseekable streams.

Use Case

Currently, the InputStream is always wrapped in a PartialWrapperStream just in case the user passes in a stream that's too big. This validation requires the underlying stream to be seekable.

Please provide an option that avoids the PartialWrapperStream for users that provide non-seekable streams guaranteed to be equal to the part size (or smaller for the last part).

Proposed Solution

Add a flag/option to UploadPartRequest to skip creating the PartialWrapperStream.

Other Information

No response

Acknowledgements

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

AWS .NET SDK and/or Package version used

Latest

Targeted .NET Platform

.NET 8

Operating System and version

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions