Download links won't start download anymore

Permalink
Hello everyone, thanks in advance for any insight you can provide.
My client's site is currently primarily used for playing and downloading archives of his radio program.
We just updated the site from 5.4 to 5.5 and are suddenly now having a problem where all "download links" no longer start a file download, but instead just start playing the file in the browser through a blank page. (Right up until we updated C5 it always would start a download.) Here is an example of one of the download links that is no longer workinghttp://www.medicimedicine.com/index.php/download_file/298/118/... If you go to this link, it will just start playing in the browser instead of downloading as it should.

What can I do to make my files download again when people go to these "download_file" links?

Thanks much,
Kari

 
medicimedicine replied on at Permalink Reply
This still isn't resolved... when I add a file for download it only plays instead of downloads like it always did in 5.4.
(This happens both within purchased add-ons that used to download, as well as just putting in a simple "file block".)
mhawke replied on at Permalink Best Answer Reply
mhawke
I'm not an expert on mime types and such but I don't think media files can be downloaded from a link. The browsers all want to play the media for you these days. I just tested this on my site and it works quite well. Add this to your .htaccess file and see if that works. I see your files are mp3's so you might just want to put mp3 in this section rather than all the extensions I have in there.

<FilesMatch "\.(mov|mp3|mp4|avi|jpg|pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
medicimedicine replied on at Permalink Reply
Thank you! That works perfectly.
I promise that it used to work for me and all our site members ALL the time without the code you gave me, but immediately stopped working when I updated to 5.5 a couple of weeks ago. I truly think there must have been something like this code hardcoded into 5.4 somewhere.

But no worries now!
Thanks again,
Kari
mhawke replied on at Permalink Reply
mhawke
Glad to be of service. I'm fairly new the C5 and to tell you the truth, I'm learning a lot about the inner workings of C5 just trying to solve other people's questions. Better than any textbook!