From 119bfcdac8e3a6de91f590e692ca4c09987d9f86 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Sun, 23 Jun 2024 13:44:36 +0200 Subject: [PATCH] Accept only image/* files in image dialog --- app/views/admin/partials/images_dialog.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/admin/partials/images_dialog.php b/app/views/admin/partials/images_dialog.php index 32e0e2a..1d546a3 100755 --- a/app/views/admin/partials/images_dialog.php +++ b/app/views/admin/partials/images_dialog.php @@ -25,6 +25,7 @@ type="file" class="hidden" name="file" + accept="image/*" oninput="let path = ; Form.send(`/admin/media/upload?path=${path}`, 'image-dialog-file-form', get('#image-dialog-file-button')).then(() => ImageDialog.setImagePage(path));" />