jquery-table2excel
jquery-table2excel copied to clipboard
I download the file without extension
hello I included 'jquery.table2excel.js' file and I succeed to download the file that in my HTML but that file is without extension (.xls or .xlsx) have the only file name what I have to do?
$(".table2excel").table2excel({ exclude: ".noExl", name: "excelUploadTemp", filename: "excelUploadTemp" + new Date().toISOString().replace(/[-:.]/g, ""), fileext: ".xls", exclude_img: true, exclude_links: true, exclude_inputs: true });
Same here with Firefox 52.
up.
No extension on Firefox, testes on v52, v61.0.1/64bit
@rainabba maybe you have any suggestions on that?
@G01K check getFileName function, it return only filename, without provided extension. Just modify this function to return filename + fileext This change fixed this issue on Firefox :) apparently Chrome much more smarter that Firefox :) ps; love both those browsers :)
@thunder-spb How did u test the getFileName function?? And how modify it?
I didn't check yet but I will check next time when I use to that Thank you! @thunder-spb
I have the same issue, and i fixed it writting the extension on the filename property 😞