image
image copied to clipboard
Allow error message to be display in notice
Allow error message to be returned from server side (and displayed in notice) together with success: 0 in the following form:
{
"success": "0",
"message": "File too large"
}
cc @neSpecc
@neSpecc any news with regards this? Thanks.
This would be really nice. I'm currently factoring my code to support this format, makes a ton of sense.
Would be fantastic if this could be merged. A custom error message is badly needed (especially because the current error message is grammatically wrong).
any news?
I, too, think this is an important change that should be made. My main use case for it is for when a user's session expires (or they log out in another tab). Currently, the message they get when an upload fails in this scenario is "Couldn’t upload image. Please try another.", which causes users to think that there's something wrong with the particular image they chose. It would be nice to be able to tell them that they're logged out and need to log back in.
Hi! any news about this? ATM error message displayed by notifier cannot be customized in any way.
Hey @mpandzo can you pls provide the access to your fork so I can update the PR.
I've submitted another PR to implement this improvement: https://github.com/editor-js/image/pull/245.