Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/5614a9693ef6cd712a151c5d1d350c12 to your computer and use it in GitHub Desktop.
Save trycf/5614a9693ef6cd712a151c5d1d350c12 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfdump var="#FORM#">
<cfif structKeyExists(FORM, "myFiles")>
<cffile action="uploadAll"
destination="C:/path/to/uploaded/"
nameconflict="makeUnique"
fileField="myFiles"
result="uploadedFiles"/>
<cfdump var="#uploadedFiles#">
</cfif>
<form method="post" enctype="multipart/form-data">
<input type="file" name="myFiles" multiple>
<input type="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment