Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Force download dialog
05-04-2011, 08:20 PM #1
- Join Date
- May 2011
- Thanked 0 Times in 0 Posts
Force download dialog
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 .mp3Code:
<Files *.mp3> ForceType application/octet-stream Header set Content-Disposition attachment </Files>Code:
<FilesMatch "\.(?i:mp3)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch>
ForceType application/octet-stream Header set Content-Disposition attachment
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.
Last edited by Slazenger; 05-04-2011 at 08:29 PM.