Topic: Amazon S3 - Set Permissions

I need to set the permission of uploaded files to S3. It looks like setting the 'acl' key in the policy array in the S3.php is the way to do it. However, any option other than 'public-read' results in an error.

Has anyone figured out how to set the ACL permissions when uploading files?

Thanks,

JB

Re: Amazon S3 - Set Permissions

In the settings of the uploader you can do this...

        multipart_params: {
            'key': 'path/on/s3/${filename}', // use filename as a key
            'Filename': '${filename}', // adding this to keep consistency across the runtimes
            'acl': 'public-read',
            'success_action_status': '201',
            'AWSAccessKeyId' : '<?php echo $access_key; ?>',
            'policy': '<?php echo $policy; ?>',
            'signature': '<?php echo $signature; ?>'
        },

Re: Amazon S3 - Set Permissions

Thanks, chadsaun. Found it in another thread as well, but will leave the thread up for others, as the other one was buried among some other items.