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

There's no support for setting canned ACLs #142

Open
hardev opened this issue Jan 22, 2018 · 2 comments
Open

There's no support for setting canned ACLs #142

hardev opened this issue Jan 22, 2018 · 2 comments

Comments

@hardev
Copy link

hardev commented Jan 22, 2018

You're able to pass canned ACLs to putObject and putObjectFile, but there's no way to set an existing file's canned ACL. You have to set an AccessControlPolicy (which is more complex). You can see a sample canned ACL for an existing object at the end of this link https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTacl.html

@hardev
Copy link
Author

hardev commented Jan 22, 2018

Had to write my own function to do this. If anyone else needs it here it is:
https://pastebin.com/VhNPnuX4

@pentium10
Copy link

@hardev the existing putObject ACL's are working for you today in november? For us it no longer works.

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

2 participants