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.

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.

×
1 answer

Please ignore. I was having a moment.

Incidentally: config.active_storage.service_urls_expire_in = 1.minute

Submit an Answer