Add file extension filters to file upload dialogs

Thanks to @b3u
This commit is contained in:
rubenwardy 2019-07-29 22:34:39 +01:00
parent b3b1e421f2
commit 87a184595c
2 changed files with 2 additions and 2 deletions

@ -17,7 +17,7 @@
{{ render_field(form.vcsLabel, class_="mt-3") }}
{% endif %}
{{ render_field(form.fileUpload, fieldclass="form-control-file", class_="mt-3") }}
{{ render_field(form.fileUpload, fieldclass="form-control-file", class_="mt-3", accept=".zip") }}
<div class="row">
{{ render_field(form.min_rel, class_="col-sm-6") }}

@ -10,7 +10,7 @@
{{ form.hidden_tag() }}
{{ render_field(form.title) }}
{{ render_field(form.fileUpload, fieldclass="form-control-file") }}
{{ render_field(form.fileUpload, fieldclass="form-control-file", accept="image/png,image/jpeg") }}
{{ render_submit_field(form.submit) }}
</form>
{% endblock %}