Hello jbpd,
The uploadEnd event can be used in both cases. It returns the server response as an argument:
$('#jqxFileUpload').on('uploadEnd', function (event) {
var args = event.args;
var fileName = args.file;
var serverResponce = args.response;
// Your code here.
});
If the upload has failed, you should echo a “failed upload” message from your server-side and this message will be received client-side as the response argument. You can take a look at our sample image uploading PHP script (found in the API Documentation, under uploadUrl) where you can see how different messages can be echoed from the server depending on whether the upload has been successful or not.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/