Download png from link, Cannot get download of png to work with a link |
Download png from link, Cannot get download of png to work with a link |
Urgaan |
May 16 2018, 06:04 AM
Post
#1
|
Group: Members Posts: 3 Joined: 16-May 18 Member No.: 26,646 |
Hi all,
I've been wanting to get an export function to work on my site, which almost works perfectly, it just does not download automatically. Currently it generates this: <a target="_blank" download="MediumRandomNewick_treemap_outer.png" href="blob:http://localhost:8080/c02ebb93-19b9-43fa-872d-b32fc02dc56f">Export</a> But this is not clickable and also does not force the download, can anyone tell me how I would go about force downloading? Preferably with JavaScript. |
Urgaan |
May 18 2018, 01:41 AM
Post
#2
|
Group: Members Posts: 3 Joined: 16-May 18 Member No.: 26,646 |
Yeah the link downloads an SVG element as a png (as in, it is a png file, but opening it in a text editor just shows a standard html SVG element).
Sorry if I don't explain things well, not really good at explaining. This post has been edited by Urgaan: May 18 2018, 01:46 AM |
Lo-Fi Version | Time is now: 29th March 2024 - 12:35 AM |