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

allowing generation of presigned URL with a specified content type #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jat45
Copy link

@jat45 jat45 commented Jul 9, 2014

I would like to use your library to put images into s3 using presigned URLs and specify that the content-type is image/png or image/jpeg rather than the default of binary/octet-stream.

To allow the content-type to be set in a PUT or POST to s3 it must also be specified (and match) the content-type specified when generating the presigned URL otherwise a 403 forbidden code is returned.

This change allows the content-type to be set, or if not set behaves as before.

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.

1 participant