jquery-table2excel icon indicating copy to clipboard operation
jquery-table2excel copied to clipboard

I download the file without extension

Open G01K opened this issue 7 years ago • 7 comments

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 avatar Mar 05 '18 02:03 G01K

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

G01K avatar Mar 05 '18 02:03 G01K

Same here with Firefox 52.

netAction avatar Apr 24 '18 08:04 netAction

up.

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

@rainabba maybe you have any suggestions on that?

thunder-spb avatar Jul 15 '18 14:07 thunder-spb

@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 avatar Jul 18 '18 12:07 thunder-spb

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

jocabaldini-zz avatar Aug 02 '18 12:08 jocabaldini-zz

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

G01K avatar Aug 10 '18 05:08 G01K

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

DeveloperSlope3 avatar May 02 '19 14:05 DeveloperSlope3