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

Support presigned PUT requests with content-type #21

Closed
wants to merge 2 commits into from
Closed

Support presigned PUT requests with content-type #21

wants to merge 2 commits into from

Conversation

sannies
Copy link
Contributor

@sannies sannies commented May 25, 2012

Hi Jason,

I stumbled across the fact that I was unable to create presigned URLs for PUTs with content-type. See this [stackoverflow http://stackoverflow.com/questions/10100193/put-file-to-s3-with-presigned-url] for details.

The first commit just corrects some filenames: camelcase of the filenames differed from the camelcase of the classes (I did this basically to make my IDE happy)

The second commit is the actual fix. It adds a content-type property to the GeneratePresignedUrlRequest and makes AmazonS3Client pick up the property for signature creation.

I'd really appreciate to see that included in the next release.

Best Regards,
Sebastian

sannies added 2 commits May 25, 2012 14:17
…equest

Made generatePresignedUrl in AmazonS3Client pick up that content-type when generating the signature
method argument name in javadoc corrected to match the actual argument
@fulghum
Copy link
Contributor

fulghum commented May 25, 2012

Hey Sebastian, this change looks good, but can you hold off on the StorageGateway renaming? We need to fix that over here on our end.

@sannies sannies closed this May 26, 2012
@sannies sannies reopened this May 26, 2012
@sannies
Copy link
Contributor Author

sannies commented May 26, 2012

closed and added new pull request that solely contains the content-type change https://github.com/amazonwebservices/aws-sdk-for-java/pull/22

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