I need to force a link to open the download dialog box instead of opening in the browser. I have tried adding each of these to .htaccess:
AddType application/octet-stream .mp3
<Files *.mp3>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
<FilesMatch "\.(?i:mp3)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
With no result. In fact, the only thing that has gotten me anywhere is
ForceType application/octet-stream
Header set Content-Disposition attachment
which forces every page on the site to download, which is obviously not what I want. I have seen implications that I may need to enable mod_header, but I have not found any instructions on how to do that.
Please don't say to just tell the user to right click+save as, because this is not an acceptable solution to the client. If I could just put up that message, I wouldn't have spent the past week trying to solve this. Also, .zip files are out.
Thanks.