medium-editor-insert-plugin icon indicating copy to clipboard operation
medium-editor-insert-plugin copied to clipboard

how to bind uploadFailed event from server response

Open lionelbzv opened this issue 7 years ago • 1 comments

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?

lionelbzv avatar Dec 20 '17 11:12 lionelbzv

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

linkesch avatar Feb 24 '18 18:02 linkesch