Spaces default permissions

March 5, 2019 738 views
Ruby on Rails

I am trying to use spaces as an active storage provider with ruby on rails.

Rails seems to expect the files to be public with no (obvious) way of setting the permission on upload.

I am trying to set the default permission for a spaces to public, but only find resources showing how to change permission after the upload. What I need is set the default to public.

Is it possible to do? Without it we can’t deploy to digital ocean :-/

2 Answers

Managed to make it work by upgrading rails. It works with the presigned url now.

Don’t need it anymore, but can’t figure out how to change default permission.

This seems to imply it is possible:

Tried with the ruby aws api, it crash with
Aws::S3::Errors::XAmzContentSHA256Mismatch ()

Then I used the Aws ruby api to generate the sign header that I use directly with curl.
Spaces did returned HTTP/1.1 200 OK, but nothing changed. New file are still privates. Though maybe I misunderstood the api and it just set the listing setting to public, but no this one stays private too.

We have the same problem. Did you figure it out? There support send a link on the ACL ( but i don’t know how to implement it.

Have another answer? Share your knowledge.