...

View Full Version : downloading a file.



maxes
06-02-2011, 10:59 AM
Whenever I would link a mp3 or media file, on the user side, that means they get a request to open it, and that's what their computers do, without actual option to save.

From what I understand, this is server setting issue, however, i can't figure which one, seems like usually people get the opposite problems, where they're asked to save the .php file and such, what I'm trying to accomplish is the total opposite.

Inigoesdr
06-05-2011, 05:11 PM
Try something like this:

<FilesMatch ".(?i:mp3)$">
ForceType application/octet-stream
<IfModule mod_headers.c>
Header set Content-Disposition attachment
</IfModule>
</FilesMatch>
I don't have time to test it right now, but it should give you a starting point.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum