I have several audio files that play on the site with Audio Player widget. I created a download button to the side. On local preview in Chrome, the button works great and immediately downloads the mp3 file. Uploaded to Business Catalyst or the ISP, when you click the download button, it loads a new black page with the player in the center that has a download button on the right that does finally download the file. Does anyone have a workaround for this? I have searched for a widget for an audio player with a download button, but have not found one among the dozen or so I have looked at. I would like for the file to download immediately once the download button is clicked. Like it does on the local preview (Shift+Command+E). Thank you.
This has nothing to do with Muse. This is the server configuration. You need to edit the htaccess file specifying in it the types of files that should be downloaded, and not open in the browser. Google this question. Or contact hosting support.
Pavel, thanks so much! This has opened up a whole new area for me.
I have tried the following with no success (This is for mp3 files that I want to download immediately). I created a file named download.htaccess in the root folder of the site. In the file I wrote the following:
Header set Content-Disposition attachment
Also, I tried:
AddType application/octet-stream .csv
AddType application/octet-stream .xls
AddType application/octet-stream .doc
AddType application/octet-stream .avi
AddType application/octet-stream .mp3
AddType application/octet-stream .mov
AddType application/octet-stream .pdf
Any guidance you could provide would be greatly appreciated.
Hi. What can I say: Why is your file called download.htaccess? It should be called simply .htaccess. The .htaccess file runs on most Apache servers. But there are hostings where .htaccess does not work. You need to clarify this with hosting support and ask them for an alternative solution.
And, I do not know it by heart. When I need something like that, I turn to Google or appeal in support of the hosting.
Once again, thank you for your help. I will contact the hosting service.