Hi All,

 

Maybe someone can help me out here. We have a document management system
written in Witango, and as part of the system we restrict access to
files based on the users profile.  When a user requests a file, we check
their credentials and then send the file back to them using the
following (where fileContents contains the contents of the file):

 

<@PURGERESULTS><@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE>
<@HTTPREASONPHRASE> <@crlf>Server: Witango
<@version><@crlf>Content-Type: application/octet-stream; name=<@VAR
LOCAL$fileName ENCODING=NONE><@CRLF>Content-Disposition: inline;
filename=<@VAR LOCAL$fileName ENCODING=NONE><@CRLF><@IF
EXPR='len(<@USERREFERENCECOOKIE>)'
TRUE='<@USERREFERENCECOOKIE>'><@crlf>"><@VAR local$fileContents
encoding=none>

 

This application was untouched for some years, and it always served the
files correctly including PDF files. The user got the Open, Save and
Cancel dialog for known file types. However, after we installed Adobe
Reader 8.0+, we no longer get the option to Open the PDF files directly,
but can only Save them to the file system. I have included the HTTP
response header below. Should Content-Type be set differently to give
the Open option? If I specifically set it to "application/pdf", I get
the open file option, but I cannot do this as we server all different
file types. Maybe someone is doing something similar and may have run
into the same problem.

 

-----------------------------------HTTP
Header------------------------------------------

HTTP/1.1 200 OK

Server: Microsoft-IIS/5.1

Date: Thu, 13 Dec 2007 11:39:32 GMT

X-Powered-By: ASP.NET

Connection: close

Server: Witango 5.5.003 Liquorice (Win32)

Content-Type: application/octet-stream; name=Certificate.pdf

Content-Disposition: inline; filename=Certificate.pdf

 

PDF contents start here......

------------------------------------------------------------------

 

 

Any help greatly appreciated.

 

Thanks

Mike.


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to