looping through form and uploading files?
Hi,
I have 4 upload fields in my form. I want to submit the form, loop through the fileds and upload them to my folder. Below is what I have so far.
Can anyone show me how this is done?
<cfif isDefined('submit')>
<cfloop index="x" list="#form.fieldnames#">
<cfoutput>
#x# - #form
<cffile action="upload" nameconflict="overwrite" destination="#ExpandPath("#application.rankingsFolder#")#" filefield="form
</cfloop>
</cfif>
