Skip to content

Instantly share code, notes, and snippets.

@PintuKumarPal
Created September 3, 2013 21:36
Show Gist options
  • Save PintuKumarPal/6429927 to your computer and use it in GitHub Desktop.
Save PintuKumarPal/6429927 to your computer and use it in GitHub Desktop.
<cfoutput>
<cfif structkeyexists(form,"files")>
<cffile action="UPLOAD" filefield="files" destination="E:\ColdFusion10\cfusion\wwwroot\AjaxUpload\uploads\" nameconflict="MAKEUNIQUE">
</cfif>
<cfheader name="pragma" value="no-cache">
<cfheader name="cache-control" value="private">
<cfheader name="Content-Disposition" value="inline; filename=files.json">
<cfheader name="Access-Control-Allow-Methods" value="GET, POST, ACCEPT, OPTIONS,DELETE" />
<cfheader name="Access-Control-Allow-Headers" value="X-File-Name, X-File-Type, X-File-Size" />
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment