Timeline for How to download file with javascript?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 21 at 16:09 | comment | added | mondjunge | This might cause Session problems in mobile Safari Browsers, using window.open(url, '_parent'); resolved the issues. | |
Apr 12, 2022 at 21:59 | comment | added | Sean |
Use the Content-Disposition header to set a file name (e.g., Content-Disposition: attachment; filename="sample.csv" )
|
|
Apr 1, 2022 at 10:11 | comment | added | mondjunge | @Zoid Since this directly opens an url, only the server can send approriate Headers to set a filename for the download. | |
Mar 30, 2022 at 14:05 | comment | added | Zoidbergseasharp | is there a way to set a file name this way? | |
Nov 17, 2020 at 11:46 | history | answered | mondjunge | CC BY-SA 4.0 |