SLUG Mailing List Archives
[SLUG] Content-Disposition: attachment; filename=
- To: SLUG <slug@xxxxxxxxxxx>
- Subject: [SLUG] Content-Disposition: attachment; filename=
- From: Peter Rundle <slug@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 08 Apr 2008 15:17:00 +1000
- User-agent: Thunderbird 18.104.22.168 (X11/20071115)
this may be a little off topic, but in my defense, the server is Linux running Apache and PHP.
I'm generating a PDF "on the fly" using the FPDF libaries and sending it back to the client. If the client has a PDF
viewer as a separate program then the filename that is passed by the "Content-Disposition:" header is available to the
end user for use with "save file as" from the PDF viewer (in my case Evince). However this also works in Windows if the
user hasn't installed Acrobat, both IE and FF offer to save the file using the name provided by the server.
If however, the end-user has the adobe acroread "plugin" in either FF or IE, then the filename is lost and the acroread
offers to save the file as the url (createPdf.php in this case).
Does anyone know if this can be "got around"?