Fix CSV windows

This commit is contained in:
LDQ 2021-08-16 21:42:54 +00:00
parent 2a7203baa6
commit f31fadd0e1

View file

@ -27,10 +27,10 @@
$('#load_button').addClass('disabled');
var file = files[0];
if (file.type != 'text/csv') {
alert("{{_('Upload CSV only')}}");
return;
}
//if (file.type != 'text/csv') {
// alert("{{_('Upload CSV only')}}");
// return;
//}
var form_data = new FormData();
form_data.append('csv_file', file, file.name);
@ -108,4 +108,4 @@
<br>
<table id="table_csv" class="table"></table>
<p style="margin-left: 2em" id="log"></p>
{% endblock %}
{% endblock %}