Browse Source

basic client side file extension filter for upload file

limit uploads to supported file types, client side
pull/546/head
Call-Me-G-Now 2 years ago
committed by GitHub
parent
commit
13154f7740
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      resources/views/import/003-upload/index.twig

6
resources/views/import/003-upload/index.twig

@ -47,7 +47,8 @@
<input type="file"
class="form-control{% if errors.has('importable_file') %} is-invalid{% endif %}"
id="importable_file" name="importable_file"
placeholder="Importable file"/>
placeholder="Importable file"
accept=".xml,.csv"/>
{% if errors.has('importable_file') %}
<div class="invalid-feedback">
{{ errors.first('importable_file') }}
@ -63,7 +64,8 @@
file</label>
<div class="col-sm-8">
<input type="file" class="form-control" id="config_file" name="config_file"
placeholder="Configuration file"/>
placeholder="Configuration file"
accept=".json"/>
</div>
</div>

Loading…
Cancel
Save