I want to insert this HTML element in some pages:
<a download="somedata.csv"
id="downloadLink"
href="data:application/csv;charset=utf-8,Col1%2CCol2%2CCol3%0AVal1%2CVal2%2CVal3%0AVal11%2CVal22%2CVal33%0AVal111%2CVal222%2CVal333"
>
Click Me
</a>
In all pages, when I change the dom via plugin or manually in elements inspector, to include this element to page's dom, it works great !
But, if I do the same in Gmail pages, the file generated is not named "somedata.csv
" and the extension is lost "csv
" !
I tried this in local file, in file uploaded to localhost, and in many external website pages, it works in all except for Gmail pages.
Why it doesn't work in Gmail pages ? And how to fix this ?