href tag download attribute - how to make it force download of externally hosted image?
问题 I want to make a <a href link which, when clicked, forces your browser to open a "Save As" dialogue. The use of the HTML5 download attribute should have this behavior on all modern browsers. When the target is an externally hosted image file, this does not work. The <a href link will navigate to the image instead of downloading it. (Tested using images hosted on Imgur and Tumblr) <a href="https://i.stack.imgur.com/440u9.png" download> <img src="https://i.stack.imgur.com/440u9.png" width="200"