This question already has an answer here: • 16 answers I'm working on a text editor in pure Javascript. I'd like it so that when the user clicks the 'Save' button, the editor downloads the file. I've already got this partly working: uriContent = 'data:application/octet-stream,' + encodeURIComponent(codeMirror.getValue()); newWindow=window.open(uriContent, 'filename.txt'); The file downloads, but the problem is that the file is named 'download'. Question: How could I change the name of the file to be anything I want, e.g filename.txt? Tamil new mp3 love songs. Tags: Tamil new movies 2018 Video Songs, Tamil new movies 2018 bollywood movie video, Tamil new movies 2018 video Download, mp4 Anush Petrosyan -Tamil new movies 2018 (New Release - 2016) hindi movie songs download, Tamil new movies 2018 all video download, Tamil new movies 2018 Hd Video Songs, Tamil new movies 2018 full song download, Tamil new movies 2018 Movie Download, Tamil new movies 2018 HD video Download, Mp4 Songs Download, Tamil new movies 2018 video, 3gp, mp4 download, Tamil new movies 2018 Songs. ![]() ![]() Application Octet Stream PdfThe says: If this header [Content-Disposition: attachment] is used in a response with the application/octet-stream content-type, the implied suggestion is that the user agent should not display the response, but directly enter a `save response as.' I read that as Content-Type: application/octet-stream Content-Disposition: attachment But I would have thought that Content-Type would be application/pdf, image/png, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |