From 56f7ffe3fae77f743dd02fd6240b61b5dd1f031d Mon Sep 17 00:00:00 2001 From: Florian Heft Date: Wed, 2 Jun 2021 16:14:41 +0200 Subject: [PATCH] Only allow image files when uploading poster * Filter the file selection dialog to only show image files --- js/editor/upload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/editor/upload.js b/js/editor/upload.js index 2f87d2b..7cb293b 100644 --- a/js/editor/upload.js +++ b/js/editor/upload.js @@ -8,6 +8,7 @@ export let uploader = tale => { h("input", { attrs: { type: "file", + accept: "image/*", }, on: { change: ev => {