Bit of a strange one. Hopefully something really stupid…!
I am POSTing a file upload using jQuery - FormData to an event handler. This works on my local machine. And it works on my server - apart from nothing is returned. The AJAX POST never completes - “CAUTION: request is not finished yet”. Additionally, a file of 7KB works, but any bigger fails.
The event handler definitely runs and everything server side looks ‘completes’. The last part of the event handler is to create a log file containing the file upload details, rc, etc. which is created OK. The last line is:
event.renderData( data=result, formats=“json” );
And I’ve also tried…
return SerializeJSON(result);
All other AJAX POSTs are fine.
The server is Windows Server 2016. [I have other Lucee (non-Coldbox) applications with AJAX uploads working on this server, so I don’t think the problem is IIS related.]
Any suggestions? I’ve uploaded a screenshot of the event handler