MediaUploader: explicitly support image/jpeg only

This commit is contained in:
Aaron van Geffen 2023-03-12 12:07:17 +01:00
parent 244af88a9a
commit 3f66fce262

View File

@ -21,7 +21,8 @@ class MediaUploader extends SubTemplate
<form action="', BASEURL, '/uploadmedia/?tag=', $this->tag->id_tag, '" method="post" enctype="multipart/form-data">
<h2>Upload new photos to &quot;', $this->tag->tag, '&quot;</h2>
<div class="input-group">
<input class="form-control d-inline" type="file" id="upload_queue" name="uploads[]" multiple>
<input class="form-control d-inline" type="file" id="upload_queue" name="uploads[]"
accept="image/jpeg" multiple>
<button class="btn btn-primary" name="save" id="photo_submit" type="submit">Upload the lot</button>
</div>
<div id="upload_preview_area">