RE: File download not working
That did it. Wasn't even thinking about that. I had it selected not to save encrypted files to disk and the file I was downloading was encrypted. It's working nowthanks much. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 6:39 PM To: CF-Talk Subject: Re: File download not working Did you recently turn off caching in IE, or do you prevent caching in the page higher up (with no-cache headers etc)? On Fri, Mar 14, 2008 at 6:01 AM, Dave [EMAIL PROTECTED] wrote: 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. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:301288 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
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:301211 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: File download not working
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
Re: File download not working
Did you recently turn off caching in IE, or do you prevent caching in the page higher up (with no-cache headers etc)? On Fri, Mar 14, 2008 at 6:01 AM, Dave [EMAIL PROTECTED] wrote: 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. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:301223 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4