Forum Moderators: phranque
I've been trying to find a way of force downloading mp3's for an internet radio website and stumbled accross the .htaccess method using:
<Files *.mp3>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
or simply
AddType application/octet-stream mp3
Both seem to work fine for most mp3's but for some strange reason not all of them. I had tried renaming the files that dont work with names that do, to no avail and it is not size dependand as some of the files that don't work are smaller than ones that do. As far as I can tell there is no difference between the files that do and do not work and are all in the same folder.
Any ideas anyone....
Also, be aware that IE may ignore the MIME-type of a file if it can determine the filetype by examining the first few bytes. It's another non-standard 'feature' of IE. Try testing with a Mozilla-type browser (Camino/1.0?) as a baseline.
Jim