3 Replies Latest reply: Sep 16, 2013 10:24 AM by courtney_p RSS

    CFFILEUPLOAD - files are uploaded, but progress bar shows error.

    courtney_p

      I am trying to get cffileupload set up on CF10. When I upload a file, I can confirm the file goes to where I specified, but the individual progress bar shows red and says "Error" (no code). The overall progress bar is green, but if there is more than one file, then it will not continue on to the 2nd.

       

      I have confirmed that the local account which runs CF has access to all pertinent directories (CFIDE, etc). I am setting the JSON values for a status of 200 and message of "Passed".

       

      What else could it be?

        • 1. Re: CFFILEUPLOAD - files are uploaded, but progress bar shows error.
          Petro O. Bochan ACP

          I bet there is a log entry for this issue. What does it say?

          • 2. Re: CFFILEUPLOAD - files are uploaded, but progress bar shows error.
            courtney_p Community Member

            Sorry, I should have mentioned. I did check logs at the time of the error and there were no errors recorded in either ColdFusion or IIS logs.

             

            I just added simple Javascript functions to the tag for onComplete, onError, and onUploadComplete. The only one that fires is onComplete. I also tried taking out all nonessential parameters from the cffileupload tag to make sure I didn't have some bad value entered.

             

            THe chain of events is as follows:

            I add a file and click Upload.

            The file's progress bar turns green and shows 99%

            The onComplete event fires and shows an alert. I close the alert

            The file progress bar immediately turns red and says Error.

            Overall progress bar is green but still says "Uploading 1 of 1" (or 2 or whatever).

            No other files are processed, but the first file IS on the server in the appropriate place.

             

            Now I am thinking there must be something else that CF is trying to access that it does not have permissions to. I run CF under a local machine account. I've given it full permissions to the Coldfusion folder and all subfolders. I am not familiar with Flash. Is there something else it could need access to?

             

            Thanks.

            • 3. Re: CFFILEUPLOAD - files are uploaded, but progress bar shows error.
              courtney_p Community Member

              Okay, well I got it to work. I don't really understand the logic, but when I added the "results" parameter to the cffile upload all tag, the error went away.

               

              Just in case anyone else has this problem, but here is my tag from the upload page:

               

              <cffile action="uploadall" filefield="filedata" destination="#uncDirectory##url.folder#" nameconflict="makeunique" result="uploadResult">