Skip to main content
Inspiring
December 13, 2010
Question

cffileupload get rid of upload box

  • December 13, 2010
  • 1 reply
  • 351 views

Okay, everything works EXCEPT the notification that the file upload is complete.  The cffileupload box just stays where it is. I have even tried to send it to another page and it won't go.

I have this code on my testing.cfm page right now.

<cffileupload name="data_uploader" url="data.cfm" extensionfilter="csv" maxfileselect=1>

It will not go to data.cfm

If I put the above code on the data.cfm page and then put in a check to see if the file uploaded everything works just fine EXCEPT the box stays right where it is and won't go away.

The csv has thousands of records in it and so I want it to say "x number of records processed" or something like that. That works great too, if I don't use the cffileuploader.  Otherwise just the box.

Eventually the end users will be able to upload multiple csv files at the same time but limiting it to 1 right now for testing purposes.

    This topic has been closed for replies.

    1 reply

    Fernis
    Inspiring
    December 13, 2010

    The "url" attribute of cffileupload tag tells which template handles the uploads on the background.

    The upload flash control is not supposed to go away when the upload is finished. Everything is working as intended.

    You need to use the onUploadComplete attribute to redirect the user to a new page when the upload is complete.

    -Fernis