keithweaver/python-aws-s3

¿How make a public file after to upload?

Closed this issue · 2 comments

image

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

AWS_DEFAULT_ACL = 'public-read' use this statement in your python file and add some permissions n actions which are mentioned below.

"Action": [
"s3:PutObject",
"s3:GetObjectAcl",
"s3:GetObject",
"s3:PutObjectAcl"
]

This is the resolution if anyone faces this problem again instead of going through the docs.