0

Hi
I want to give a download button in my web page and when any one click on download button the image download to their computer. How i can do this please tell me?

currently i m doing <a href='images/3.png'>Download</a> it open the image in new tab but i want to download the image.

Thanks

2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by JorgeM
0

You will need something on the server to send a Content-Disposition header to set the file as an attachment, compress the images as zip files so the browser cant open it in another window.

What web server application are you running this website on? Apache, IIS?

Edited by JorgeM

0

apache and right now its on my pc localhost if you have code or any link please give me thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.