2
0
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:
Nathanaël Jourdane 2019-03-12 16:02:01 +01:00
parent 4ac86cc49d
commit 6e35026a75

View File

@ -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();