Might not solve your problem, but had to do this to force a download in
a previous project....

<!--- IE 5.5 has bug and need to give it slightly diff header info --->
<cfif FindNoCase("MSIE 5.5",CGI.USER_AGENT) GT 0>
        <cfheader name="content-disposition"
value="filename=#sFileName#">
<cfelse>
        <cfheader name="content-disposition" value="attachment;
filename=#sFileName#">
</cfif>
<cfcontent type="text/comma-separated-value">



-----Original Message-----
From: David Hannum [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2003 13:59
To: CF-Talk
Subject: IE 5 on Win2K bug perhaps????


We've come across a very interesting issue here.  We have several
applications that generate downloadable Excel spreadsheets or Word
documents.  We're using cookies as part of our
authentication/authorization process and we're running CF 5 on Win2K
Server.

The way were generating the document headers as follows: <CFHEADER
NAME="Content-Disposition" VALUE="FILENAME=NameHere"> <CFCONTENT
TYPE="application/vnd.ms-word"> OR <CFCONTENT
TYPE="application/vnd.ms-excel"> depending.
Note:  We're running an Application.cfm  file that checks for the
cookies mentioned above and stops/flags the application if they are
missing.

It seems that with a client OS/Browser combination of IE 5 and Win2K
Professional, when you go to download the file, the content type and
possibly the header are sent BEFORE the Application.cfm is run, thus
causing either a blank file or a file with the Application.cfm message
regarding missing authentication (cookies) displayed.  The application
works on any other OS/Browser combination we're able to test.  We've
tried it on several machines running Win2K and IE 5 with the same
failure results. Win2K with
NS 4x, 6x, 7 and IE 6x work fine.  IE 6 on XP is fine.   Has anybody
seen
this before or have you seen any info on this?  Part of it reeks of a
browser issue, however I don't understand the part about the CFCONTENT
type being sent to the browser BEFORE the Application.cfm stops it.

Thanks for any insight.

Regards,
Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to