This commit is contained in:
cuom1999 2021-10-09 23:22:02 -05:00
commit e51c76c68c

View file

@ -27,10 +27,10 @@
$('#load_button').addClass('disabled'); $('#load_button').addClass('disabled');
var file = files[0]; var file = files[0];
if (file.type != 'text/csv') { //if (file.type != 'text/csv') {
alert("{{_('Upload CSV only')}}"); // alert("{{_('Upload CSV only')}}");
return; // return;
} //}
var form_data = new FormData(); var form_data = new FormData();
form_data.append('csv_file', file, file.name); form_data.append('csv_file', file, file.name);