Copy link to clipboard
Copied
I am using the cffileupload tag like <cffileupload url="cf/process.cfm" maxfileselect="5"> and for the process.cfm, it was:
<cffile action="uploadall" destination="c:\test" nameconflict="overwrite" />
<cfset str.STATUS = 200>
<cfset str.MESSAGE = "passed">
<cfoutput>#serializeJSON(str)#</cfoutput>
My question is this, does the cffileupload tag loop over the entire destination page each time a file is uploaded? I added some logic I want to happen to those uploads AFTER they're all uploaded, but I think that its running my cfinvoke's each for each file........
Is there a way to redirect it to a page after ALL processing of the file uploads are done?
Copy link to clipboard
Copied
Yes it runs the "reciveing" page every time it uplaod a file.
you can use the "onUploadComplete" JS call of the cffileuploader to redirect the users to a diffrent page on complete.