Thanks Ben,

 

That was one of the first things I tried. It didn’t make any difference. Have you had the file/save work properly?

 

Dave

 

-----Original Message-----
From: Ben Johansen [mailto:[EMAIL PROTECTED]
Sent: October 30, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Witango-Talk: PDFs and http headers

 

I use

Content-Disposition: attachment; filename=

 

Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Witango Developement

-----Original Message-----
From: Dave Shelley [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 9:04 AM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: PDFs and http headers

 

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
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to