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

AWS S3: Use mulitpart post to upload large files from Streams. #628

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

ggallotti
Copy link
Member

@ggallotti ggallotti commented Jul 8, 2022

After #435 , we started using MemoryStream for Stream Uploads because we don't know the object size of the network stream.

AWS S3 High Level API does not support uploads of Streams with undefined length.
The LowLevel S3 API does support upload of streams with undefined length. We start using this mechanism.

Code was inspired from:
https://github.com/mlhpdx/s3-upload-stream

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti had a problem deploying to external-storage-tests July 8, 2022 18:06 Error
@ggallotti ggallotti temporarily deployed to external-storage-tests July 8, 2022 18:31 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti changed the title AWS S3: Do not use MemoryStream to upload objects. AWS S3: Use mulitpart post to upload large files from Streams. Jul 8, 2022
@ggallotti ggallotti temporarily deployed to external-storage-tests July 14, 2022 12:37 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

Copy link
Collaborator

@claudiamurialdo claudiamurialdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ggallotti ggallotti merged commit a8c9aae into master Jul 22, 2022
@ggallotti ggallotti deleted the s3-upload-large-file branch July 22, 2022 14:24
@ggallotti ggallotti restored the s3-upload-large-file branch July 22, 2022 14:29
ggallotti added a commit that referenced this pull request Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants