Hi all,
I am looking for a straightforward approach to allow app users to download photos. The app uses ActiveStorage, with files persisted in S3.
<%= link_to "Download Photo", rails_blob_path(@photo.image, disposition: "attachment")
This works as expected in browser.
iOS app using turbo-native: Opens some sort of native modal with prompt “Open in…”
Android app using turbo-native: Triggers an endless loop
I had a look at path configuration to see if something could be done there, but nothing stood out.
I suspect I might encounter app file permission issues? So I am not against just opening the blob url in the devices native browser as an intermediate step.
If anyone has solved this problem, please let me know! Thanks