Reputation: 71
I am adding files to google cloud storage bucket with active storage. I don't find any way to specify the file privacy, whether it is private or public and the expiration time, and how to resign the url if it has been expired.
Upvotes: 3
Views: 517
Reputation: 93
Files are privates with the default ActiveStorage. If you want to be able to upload some files with public acl (with public url), and others with private acl (with expiring url) you can use some patch I found : https://gist.github.com/dinatih/dbfdfd4e84faac4037448a06c9fdc016
https://github.com/rails/rails/issues/31419#issuecomment-370900013
Upvotes: 2