I'd seen the content-description in a few examples figured I'd give it a try. I've also see the attachment formatted with colon and semi-colon as well as simply attachment="filename". I started with a semi-colon and no content-description with the same end. It is working under firefox, just not IE7.
> -----Original Message----- > From: Jochem van Dieten [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2008 3:43 PM > To: CF-Talk > Subject: Re: File download not working > > Dave wrote: > > "...cannot download DownloadUserInfo.cfm...site is either > unavailable > > or cannot be found...". > > > <cfset myFile = #fromdir# & "txtfiles.aes"> <cfheader > > name="Content-Disposition" > > value="attachment:filename=txtfiles.aes"> > > <cfheader name="Content-Description" value="User Info File"> > > <cfcontent type="application/aes" file="#myFile#"> > > Why do you need the Content-Description? It is not a header > from RFC 2616. Your Content-Disposition has a colon instead > of a semi-colon. I would add some error checking as well: > > <cfset myFile = fromdir & "txtfiles.aes"> <cfif FileExists(myFile)> > <cfheader name="Content-Disposition" value="attachment; > filename=""txtfiles.aes""" /> > <cfcontent type="application/aes" file="#myFile#" /> <cfelse> > <cfthrow message="File #myFile# not found" /> </cfif> > > If that doesn't work use a packetsniffer to see what really > gets send to the browser. > > Jochem > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301216 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4