We've moved discussions to Discord

AWS S3 Bucket permissions (access denied when user upload image)

Laetitia Massa
Does anyone know how to give write permission to Everyone ?

AWS changed the way we can grant some permissions, and it's now impossible to grant write permission to Everyone from the console.

I understand the reason behind this, but can't figure out how to make it work through AWS-SDK as they suggest.

How do you manage this aspect in your most recent apps?
Chris Oliver
The Rails guides have CORS configuration you use to set for allowing direct uploads:

https://guides.rubyonrails.org/active_storage_overview.html#cross-origin-resource-sharing-cors-configuration

In general, you'll always want to use direct uploads so that files go directly from the user's browser to S3 (and not through your Rails app).
Laetitia Massa
Thanks, Chris Oliver !
In the meantime, I found a tutorial with the new S3 permissions scheme.

If anyone goes through the same issue, here is the link: https://youtu.be/PDrsBPZWHLA 
Notifications
You’re not receiving notifications from this thread.