diff --git a/libs/utils.js b/libs/utils.js index 953af106..13d26f10 100644 --- a/libs/utils.js +++ b/libs/utils.js @@ -870,8 +870,9 @@ utils.prototype.readFile = function (success, error, accept, readType) { else core.platform.fileReader.readAsDataURL(core.platform.fileInput.files[0]); core.platform.fileInput.value = ''; } - if (accept) core.platform.fileInput.accept = accept; } + core.platform.fileInput.value = ''; + if (accept) core.platform.fileInput.accept = accept; core.platform.fileInput.click(); }