medium-editor-insert-plugin
medium-editor-insert-plugin copied to clipboard
how to bind uploadFailed event from server response
I'm getting troubles to bind the uploadFailed
event if errors occurs during file processing in the server.
This JSON response binds the fileuploadfail
blueimp-jquery-fileupload event:
statusCode: 400
responseText: 'error' => 'Ooh no, an error occurs'
But doesn't bind the uploadFailed
event of this plugin.
What's the expected JSON server response to bind uploadFailed
code?
Looking at code, I don't think we're showing upload errors right now. Feel free to add it here: https://github.com/orthes/medium-editor-insert-plugin/blob/master/src/js/images.js#L200