html5 download attribute won't work in chrome -


i have javascript code construct download link:

<a download="report.csv" href="data:application/csv;charset=utf-8,(data appended here)"></a> 

when click it, download file 'download' instead of 'report.csv'. doubt if that's because browser doesn't support html5 since download attribute html5 feature. test browser (chrome) shows support html5. 1 know why won't work? thanks.

if remember correctly, charset attribute not supported anymore in html5.

you can try append data converted base64


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -