I need to make the user able to download a file from my webpage on clicking a link on my website
I tried <a href='./image.ext'>Download file</a>
By it just opened a new window and i need to right click and select “save page as”
What I am expected is ,after clicking my link user must see a dialogue box “save as” as usual…How to do it..Is there any way in HTML to force download by showing such a dialogue
Note:Since stackoverflow is not allowing anchor tag,i just typed it as a.Please do not treat it as a mistake
You can use php to readfile() the file to the user.
this tutorial would be helpful for you :
http://webdesign.about.com/od/php/ht/force_download.htm