I’m having a hard time trying to figure this out.
I have a button_to that should download a .mp4 movie that is stored on S3 when clicked. Since the audience is very basic, I need that when they click the button the download start right away. No right-click and Save As, just a button to send the file as download instead of open it on the browser.
I tried using send_file only to realize that it works for local files.
Any idea how to do this?
Just solved it using a
link_toinstead and link directly to the S3 file. Amazon automatically send the file to download instead of open in on the browser. Easier than I thought.