I have an a tag in my html file that is pointed to a .csv file. Every time I click on the link it downloads the same file in .xls extension. Why?
I tried the following:
<a href="./example.csv" target="_blank">File download</a>
<a href="./example.csv" download>File download</a>
<a href="./example.csv" type="text/comma-separated-values">File download</a>
<a href="./example.csv" type="text/csv">File download</a>
I tried to open the file with the file:///myfolder/example.csv protocol but all of these had the same outcome.
Whereas in Firefox, IE, Edge this downloads the file in .csv extension.
How can I get chrome to download the .csv file in the .csv extension?