only accept common image formats (#227)

Co-authored-by: Matt Kilgore <tankerkiller125@users.noreply.github.com>
This commit is contained in:
mcarbonne
2024-09-17 03:14:00 +02:00
committed by GitHub
parent 64ceffefe9
commit f3f709748e

View File

@@ -10,7 +10,7 @@
<div class="modal-action mb-6"> <div class="modal-action mb-6">
<div> <div>
<label for="photo" class="btn">{{ $t("components.item.create_modal.photo_button") }}</label> <label for="photo" class="btn">{{ $t("components.item.create_modal.photo_button") }}</label>
<input id="photo" class="hidden" type="file" accept="image/*" @change="previewImage" /> <input id="photo" class="hidden" type="file" accept="image/png,image/jpeg,image/gif" @change="previewImage" />
</div> </div>
<div class="grow"></div> <div class="grow"></div>
<div> <div>