rainabba / jquery-table2excel

jQuery Plugin to export HTML tabled to Excel Spreadsheet Compatible Files
592 stars 665 forks source link

I download the file without extension #92

Open G01K opened 6 years ago

G01K commented 6 years ago

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?

G01K commented 6 years ago

$(".table2excel").table2excel({ exclude: ".noExl", name: "excelUploadTemp", filename: "excelUploadTemp" + new Date().toISOString().replace(/[-\:.]/g, ""), fileext: ".xls", exclude_img: true, exclude_links: true, exclude_inputs: true });

netAction commented 6 years ago

Same here with Firefox 52.

thunder-spb commented 6 years ago

up.

No extension on Firefox, testes on v52, v61.0.1/64bit

@rainabba maybe you have any suggestions on that?

thunder-spb commented 6 years ago

@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 :)

jocabaldini-zz commented 6 years ago

@thunder-spb How did u test the getFileName function?? And how modify it?

G01K commented 6 years ago

I didn't check yet but I will check next time when I use to that Thank you! @thunder-spb

DeveloperSlope3 commented 5 years ago

I have the same issue, and i fixed it writting the extension on the filename property 😞