¿How make a public file after to upload?
Closed this issue · 1 comments
NeftaliAcosta commented
I use my s3 cube as a cdn for my project. But every time I upload a file I have to make it public manually.
What do I need to do for everyone?
Thank you
jschwarzwalder commented
You likely need to apply an ACL policy to the files or the bucket.
See put_object_acl() in the Boto3 Documenation.
You can also specify ACL when upload the file with put_object
Add this parameter into your request with the permission you would like to give each file. ACL='private'|'public-read'|'public-read-write'|'authenticated-read'|'aws-exec-read'|'bucket-owner-read'|'bucket-owner-full-control',
