cffileupload - JSON return causing error
I have a page has the cffileuload tag.
The process page simply moves the file to a new location and returns the JSON stuct.
<cfset str.STATUS = 200>
<cfset str.MESSAGE = "passed">
<cfoutput>#serializeJSON(str)#</cfoutput>
When I run the page I get a red bar error (no number) on the first file and the uploading stops. However the actual file does move so it is being processed.
When I comment out the str.STATUS = 200 everything seems to work fine.
I don't have much understanding of AJAX but I was under the assumption that the STATUS 200 was feedback to the uploader that the page has successfully run.
According to the documentation I need to output the JSON as above.
Any help would be appreciated.
Running: CF9.0.1
