Gov2: Add presign post request support - S3 #6937
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is Luis from the Go SDK team
We recently added support for s3 presign POST requests at aws/aws-sdk-go-v2#1224
We'd like to expand the existing examples to add presign post requests.
Let me know if there's anything I should change about the tags used to create the examples so they display correctly at https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_Scenario_PresignedUrl_section.html
This scenario has a bit more complex way of sending the request since multipart requests require more setup. However, this is mostly intended to be used by a browser sending a form rather than sending this directly from a Go server.
Tested this by
go run ./cmd -scenario presigning
and making sure it works as expected with a local filego test
inside the s3 folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.