Skip to content

Instantly share code, notes, and snippets.

@jsteinshouer
Last active April 22, 2016 18:04
Embed
What would you like to do?
CSV Download Example
<cfset csv = io.queryToCSV(query=qMyQuery,fields="field1,field2,field3,...")>
<cfheader name="Content-disposition" value="attachment;filename=MyCSVFile.csv">
<cfcontent type="text/csv">
<cfoutput>#csv#</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment