Download image
I want to put a link on my site that when they click it a window will open up (just like you right click and went to save as) so that the user can save the image to their hard drive. Is their an html tag I can put into an href?
I want to put a link on my site that when they click it a window will open up (just like you right click and went to save as) so that the user can save the image to their hard drive. Is their an html tag I can put into an href?
Ewles posted this at 12:16 — 22nd April 2002.
They have: 10 posts
Joined: Apr 2002
zip it
Wil posted this at 12:25 — 22nd April 2002.
They have: 601 posts
Joined: Nov 2001
No, this is partly to do with the way the server is configured and partly to do with the way the browser is configured.
There is no sure method. The best way, IMO, would be to specifically state 'please right click and download'.
The other way is to specify a mime type of that file or folder where the file resides to be application/octet-stream - this can be put in your .htaccess file that will insturct the browser to prompt for a save/download sialogue box.
Hope this helps.
- wil
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.