Reputation: 9158
How can i force content-disposition dir? it get the file from temp dir... i would like to change thi dir...
header("Content-type: application/zip");
header('Content-Disposition: attachment; filename="' .$file_zip. '"');
Upvotes: 0
Views: 1026
Reputation: 1108537
The filename
attribute is supposed to hold only the filename, not the entire file path. Get rid of that path. It's up to the enduser (and its webbrowser configuration) where to save the file. There is no way to control the save location from the server side on.
Upvotes: 2