mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 07:34:28 -06:00
[wip upload-image] bugfix error popup
This commit is contained in:
parent
c7275aa72b
commit
e1536da530
@ -1199,7 +1199,7 @@ function humanFileSize(bytes, units) {
|
||||
function uploadImage(file, options, onSuccess, onError) {
|
||||
if (file.size >= options.imageMaxSize) {
|
||||
var units = options.imageTexts.sizeUnits.split(',');
|
||||
alert(options.text.errorImageTooBig
|
||||
alert(options.imageTexts.errorImageTooBig
|
||||
.replace('#image_name#', file.name)
|
||||
.replace('#image_size#', humanFileSize(file.size, units))
|
||||
.replace('#image_max_size#', humanFileSize(options.imageMaxSize, units))
|
||||
|
Loading…
x
Reference in New Issue
Block a user