tpyo / amazon-s3-php-class

A standalone Amazon S3 (REST) client for PHP 5/CURL
1.03k stars 504 forks source link

There's no support for setting canned ACLs #142

Open hardev opened 6 years ago

hardev commented 6 years ago

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 commented 6 years ago

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

pentium10 commented 5 years ago

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