Hi all
I have produced a page that starts a download of a PDF. However when the download box opens it has the option of opening the file.
What i want to do is force the user into saving onto their computer so i really would like to remove the "open" button.
Is this possible?
customising a download box
Moderator: General Moderators
look at header() you should.
pdfs, are their own beasts though, certain you can force them to d/l a pdf I am not.
pdfs, are their own beasts though, certain you can force them to d/l a pdf I am not.
Code: Select all
header("Content-Description: File Transfer");
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename=".$filename_string);yeah i have something similar;
bt is it possiible to customise the download box so there is just a save button?
Code: Select all
header ("e;Content-Type: application/octet-stream"e;);
header ("e;Content-Type: application/download"e;);
header("e;Content-Disposition: attachment; filename=$file"e;);
header("e;Content-Length: $size"e;);