|
I use Content-Disposition: attachment; filename=
Ben Johansen - http://www.pcforge.com -----Original Message-----
Hi,
I have a document management system as part of a larger application, and I’m having a problem that maybe others have had too. When a user requests a document with a url like getDoc.taf?docID=123, the server reads the file from a secured area, formats the http header and document is automatically opened in Adobe Reader. That all works fine. The problem is when the user does a file/save. The filename defaults to getDoc.pdf rather than the actual filename.
The http header looks like this: HTTP/1.1 200 OK Content-Type: application/pdf Content-Length: 3944 Content-Disposition: inline; filename="someFileName.pdf"
File/save should save it as someFileName.pdf. Has anyone else experienced this problem or know of a solution?
If I change the Content-Type to application/download, the user is prompted to open or save the file, and the save filename is correct. But we want it to open automatically in Adobe. Also if they choose to open the file, then do a file save, the default filename is someFileName[2].pdf
Setup is: Win2003, IIS, Witango 5, mySQL, IE 6, Adobe Reader 6.0
Thanks. Dave Shelley ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf |
- Witango-Talk: PDFs and http headers Dave Shelley
- RE: Witango-Talk: PDFs and http headers Ben Johansen
- RE: Witango-Talk: PDFs and http headers Dave Shelley
- RE: Witango-Talk: PDFs and http headers Ben Johansen
- Re: Witango-Talk: PDFs and http headers Garth Penglase
- RE: Witango-Talk: PDFs and http headers Bill Conlon
