pekeUpload
pekeUpload copied to clipboard
show server error
Hello,
I've set the errorOnResponse property on creating the control:
$(element).pekeUpload({ errorOnResponse: 'some error' });
and if the server return an error:
return Json(new { error = "not allowed to upload files" });
the pekeUpload show the "some error" message insted of the "not allowed to upload files"
How can i show the server message insted?