Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #519

Closed
wants to merge 4 commits into from
Closed

Next #519

wants to merge 4 commits into from

Conversation

ugovaretto
Copy link

This pull request supersedes PR #517 (which I inadvertently submitted, not understanding how pull requests work, sorry).

Associated functions were added to ByteStream to allow for uploading chunks of data from files, one augments the from_file function and the other the from_path one.
The from_path_chunk function creates its own internal file handle so that it can be called from separate threads.

This submission includes also two examples of how to perform a partial and a multipart file upload.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh
Copy link
Contributor

rcoh commented Apr 22, 2022

Hello! thanks for opening this pull request—this is definitely a change worth making.

However, this entire repo actually just holds essentially generated code—we actually need the PR in this file: https://github.com/awslabs/smithy-rs/blob/main/rust-runtime/aws-smithy-http/src/byte_stream.rs

(note that we recently landed an unreleased refactoring that uses a builder instead). Let me know if you need any help / guidance porting the PR there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants