HTTP header for sending PDF, problem in Firefox
On windows, when I save the pdf with the Firefox plugin plugin, this issue occurs. Saved file:http://www.example.com/opendocument.php_doc=._docs_doc01
My headers:
header('Content-type: application/pdf');
//header('Content-Disposition: inline; filename=doc01.pdf');
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($pdf));
Original challenge:
http://www.example.com/opendocument.php?doc=./docs/doc01.pdf
I am not interested in the attachment title. I have to open the website and not load the outer window.
Any idea?
+2
a source to share