pekeUpload icon indicating copy to clipboard operation
pekeUpload copied to clipboard

show server error

Open fredericoregateiro opened this issue 8 years ago • 0 comments

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?

fredericoregateiro avatar Nov 16 '16 13:11 fredericoregateiro