I am exporting data using javascript to csv. for some reason i am not allowed to use the traditional
<a download="filename.csv" /a>
to set the file name.
I have the following line of code:
window.location.href = "data:text/csv;base64," + csvdata
Where and how can i insert and specify the file name and extension to make it work?
It's not possible that way, try to emulate the
<a href=..
with a click on it like this: