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

Provide acl in headers rather than form data? #32

Closed
danielcompton opened this issue Mar 22, 2016 · 1 comment
Closed

Provide acl in headers rather than form data? #32

danielcompton opened this issue Mar 22, 2016 · 1 comment

Comments

@danielcompton
Copy link
Collaborator

I was confused for a bit trying to debug why "PutObject" permissions weren't enough to put an object to S3. At first I thought I needed "PutObject", but after reading the docs, it says "PutObject" is only needed for adding acl's to existing objects. I tried it anyway and it worked.

After reading "PutObject" REST docs, I couldn't see anywhere that it showed passing acl as a form parameter, they suggest adding it as a header.

This needs more investigation.

@danielcompton
Copy link
Collaborator Author

We do a POST, not a PUT, and the acl is a form parameter in the POST. (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)

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

No branches or pull requests

1 participant