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

Java v2: Update presign URL with PUT to show file and update other examples #5558

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Java v2: Update presign URL with PUT to show file and update other examples #5558

merged 2 commits into from
Oct 24, 2023

Conversation

tkhill-AWS
Copy link
Collaborator

This pull request...updates code examples for S3 presigning for PUT requests. The Java dev guide contained an example that used metadata and uploaded a string, but customers have expressed interesting in seeing examples that upload files, such as PDF files. So the Java dev guide will use a new file GeneratePresignedUrlAndPutFileWithMetadata.java in place of GeneratePresignedUrlMetadata.java.

The content for file GeneratePresignedUrlUploadImage was never used, so it has been deleted.

The file used in SoS examples, GeneratePresignedUrlAndUploadObject.java, has been updated with a JDK 11 HttpClient example to upload the String, in addition to the HttpURLConnection example. The uploading code has been separated from the code that creates the presigned URL, to make it the distinction clearer.

The updated content for the SoS examples is here as the first example with the title, Create a presigned URL.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the Java-v2 This issue relates to the AWS SDK for Java V2 label Oct 23, 2023
@tkhill-AWS tkhill-AWS changed the title Presign with file Java v2: Update presign URL with PUT to show file and update other examples Oct 23, 2023
@scmacdon scmacdon added On Call Review complete On call review complete Text Review not needed This contains no text which needs review Task labels Oct 24, 2023
@scmacdon scmacdon merged commit 38d57ce into awsdocs:main Oct 24, 2023
12 of 17 checks passed
@tkhill-AWS tkhill-AWS deleted the presign_with_file branch October 24, 2023 19:19
ford-at-aws pushed a commit that referenced this pull request Dec 15, 2023
…amples (#5558)

* Create presigned URL example that puts a file

https://sim.amazon.com/issues/V1071818812

* remove unused or replaced files; remove metadata.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java-v2 This issue relates to the AWS SDK for Java V2 On Call Review complete On call review complete Text Review not needed This contains no text which needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants