Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
File Upload Read Permissions on DO Spaces
I have been trying out spaces with in my Laravel application’s file uploads feature. While I have successfully uploaded the files from the application using the S3 driver, users cannot view the images uploaded because the images are uploaded with permissions as private in spite of the fact that the bucket itself has public read access. Links to the images return the following error;
With Amazon S3, I am able to set the bucket items permission with a policy like the one below;
This way, all file uploads are immediately readable by users.
Is there an equivalent way of doing this in Spaces? If I can’t do this then this feature will not be of any use to me.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×