Skip to content

Commit

Permalink
Accept only image/* files in image dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Jun 23, 2024
1 parent 51a3c10 commit 119bfcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/admin/partials/images_dialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
type="file"
class="hidden"
name="file"
accept="image/*"
oninput="let path = <?= e(js($path)) ?>; Form.send(`/admin/media/upload?path=${path}`, 'image-dialog-file-form', get('#image-dialog-file-button')).then(() => ImageDialog.setImagePage(path));"
/>
</div>
Expand Down

0 comments on commit 119bfcd

Please sign in to comment.