mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add file extension filters to file upload dialogs
Thanks to @b3u
This commit is contained in:
parent
b3b1e421f2
commit
87a184595c
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user