Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

how to bind uploadFailed event from server response #450

Open
lionelbzv opened this issue Dec 20, 2017 · 1 comment
Open

how to bind uploadFailed event from server response #450

lionelbzv opened this issue Dec 20, 2017 · 1 comment

Comments

@lionelbzv
Copy link

lionelbzv commented Dec 20, 2017

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?

@linkesch
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants