Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Sep 13, 2013 Sep 13, 2013

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.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 16, 2013 Sep 16, 2013

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">

Translate
Enthusiast ,
Sep 13, 2013 Sep 13, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 16, 2013 Sep 16, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 16, 2013 Sep 16, 2013
LATEST

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">

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources