Make a link download an image


#1

I tried to make a link download an image, but all it does is open the image in the tab, it doesn’t download it…

<a href="https://i.imgur.com/KBUpwNd.jpg" download="V2Map">Download</a>

I looked into it and it says if it’s on a different domain you can’t download in Chrome, and since projects are hosted on glitch.me and images are hosted on glitch.com this is a problem, any ideas how to fix this?


#2

You could encode the image with base64 :thinking: