pekebyte / pekeUpload

jQuery html5 file uploader plugin
http://pekebyte.github.io/pekeUpload
Other
82 stars 73 forks source link

show server error #28

Open fredericoregateiro opened 7 years ago

fredericoregateiro commented 7 years ago

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?