Yes, I've come across the same thing - most browsers will use the
link as the filename, so I don't build a page around the PDF.
In my download apps I always offer a standard URL with the pdf
filename referenced directly in a separate window to avoid this
issue and keep it simple, but it does mean that the user has to be is
instructed to close the window after viewing/saving. I always offer
zipped versions of the same file for downloading to make and with a
bit of _javascript_ make it a one click download (.zip) or view (.pdf)
for the user.
If you want to see what I mean, I can point you to an older
version of what I'm talking about whic isn't password protected at
http://paulhannan.com
Just select one of the "Roles" from the drop down list
and then either click the download icon for a one-click file download
or click the link for the pdf to be displayed.
This may not be what you're trying to achieve but it may give you
some ideas.
cheers
Garth
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
--
Garth Penglase
Broadband Media
http://bbmedia.com.au
ph: 0500 527 000
Broadband Media
http://bbmedia.com.au
ph: 0500 527 000
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
