Last active
April 22, 2016 18:04
-
-
Save jsteinshouer/5f96b66bec0e8c94348a67e2fa2619e6 to your computer and use it in GitHub Desktop.
CSV Download Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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