I'm using the following to export a CSV file:
<cfheader name="Content-Disposition" value="attachment;filename=download.csv">
<cfcontent type="text/csv" reset="yes"><cfoutput>#variables.output#</cfoutput>
This works fine in IE, but in FF the filename comes out as "download.csv," with a trailing comma, and in Chrome as "download.csv, attachment". Because of this Excel doesn't recognize it. Why is the filename not coming out as instructed? I believe this has worked fine in the past, but not in this particular case.
I haven't tested in Chrome but in Firefox, IE and Safari it works as
expected (filename is download.csv).
Try using Excel's type instead, namely