We fixed it! Turned out to be a missing quote around the filename, this works:
<cfheader name="Content-Disposition" value="attachment;filename=""#filename#""" charset="utf-8" > Brook -----Original Message----- From: Rick Root [mailto:rick.r...@gmail.com] Sent: December-06-10 10:50 AM To: cf-talk Subject: Re: CFHEADER on Chrome to download an Excel CSV / Mime Type problem Have you tried using this mime type instead? application/msexcel On Mon, Dec 6, 2010 at 1:42 PM, Brook Davies <cft...@logiforms.com> wrote: > > I've been using the following code for years with no problems on > IE,FF,Safari to force the download of a CSV file that will be associated > with and opened by Excel: > > <cfheader name="Content-Disposition" > value="attachment;filename=""myExport.csv" charset="utf-8"> > <cfcontent type="application/vnd.Microsoft Excel Comma Seperated Values > File; charset=utf-8"> > > However, this code in Chrome results in the actual template filename being > used without any association (ie. Download.cfm gets pushed to the user). I > can get a straight up XLS file to be downloaded and recognized by Chrome, > but no dice on the CSV formatted excel document. Has anyone got this to > work > in Chrome? I have of course googled this and not been able to find anything > that works... > > Brook > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339828 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm