What Is The Html Code To Make A Link Directly Download An Image. I Want The User To Download Rather Than Vi?
Saturday, December 12th, 2009 at
5:19 am
I cant seem to find how to write the code for a direct download link rather than display content. What is it?
Tagged with: Code. • Directly • Download • HTML • Image • Link • Make
Filed under:
HTML
Like this post? Subscribe to my RSS feed and get loads more!
You can’t, but here is a trick:

1. Make a thumbnail of your image.
2. ZIP the original image
3. Make your link:
The reason for that is because web browsers are configured to automatically display certain types of content, such as web images and web pages. You can’t change that.
So just let it display because most people will know how to save an image, or add instructions to tell people how to save the image by right-clicking and Save.
There is no way to change the link. The use has to right-click on the link and choose “save as…”. Otherwise, the browser will just display the image.
actually images are automatically displayed and displaing is itself downloading