View Full Version : downloading a file.

06-02-2011, 11: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.

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

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