Skip to main content
April 15, 2011
Question

Using cffileupload

  • April 15, 2011
  • 1 reply
  • 510 views

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?

    This topic has been closed for replies.

    1 reply

    talofer99
    Inspiring
    April 17, 2011

    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.