2 Replies Latest reply on Jun 28, 2009 9:25 AM by BKBK

    filename in CFHeader

    rgurganus Level 1

      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.