Report this

What is the reason for this report?

Rails Active Storage + DO Space + Expiring links?

Posted on October 11, 2020

I am hunting for a method that will allow me to create expiring links to files stored in Spaces. So that either as the app displays a list of files or at the point the user clicks to download a file - a time limited (say 10 minute) link is generated.

I can see the documentation regarding Spaces Quick Links - I’m looking for this capability but automate-able from within Rails.

Any links or pointers of where I should investigate appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Please ignore. I was having a moment.

Incidentally: config.active_storage.service_urls_expire_in = 1.minute

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.