diff --git a/themes/base.js b/themes/base.js index cf0a247961..612fd4b8bd 100644 --- a/themes/base.js +++ b/themes/base.js @@ -124,7 +124,7 @@ BaseTheme.DEFAULTS = extend(true, {}, Theme.DEFAULTS, { if (fileInput == null) { fileInput = document.createElement('input'); fileInput.setAttribute('type', 'file'); - fileInput.setAttribute('accept', 'image/*'); + fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon, image/x-quicktime'); fileInput.classList.add('ql-image'); fileInput.addEventListener('change', () => { if (fileInput.files != null && fileInput.files[0] != null) {