mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-30 05:14:28 -06:00
[wip upload-image] bugfix error message displayed twice
This commit is contained in:
parent
4ac86cc49d
commit
6e35026a75
@ -1925,6 +1925,7 @@ EasyMDE.prototype.uploadImage = function(file, onSuccess, onError) {
|
||||
|
||||
if (file.size > this.options.imageMaxSize) {
|
||||
onError(fillErrorMessage(this.options.errorMessages.fileTooLarge));
|
||||
return;
|
||||
}
|
||||
|
||||
var formData = new FormData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user