It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

link to download jpg file (NOT to open it)

link to download jpg file (NOT to open it)

Postby ivan on Thu Oct 12, 2006 3:56 pm

I hope to create a link for people to download a jpg file. IF I use <a href> tab, it will open a new IE and display the file only. But I hope to function as like "SAVE AS", so the "SAVE AS" pop-up can appear and people can choose the location to save it.

How can I do it?
ivan
 
Posts: 2
Joined: Thu Oct 12, 2006 3:48 pm

Postby johneva on Thu Oct 12, 2006 4:06 pm

You need to compress the file with winzip or something that way they download the zipped file instead of diplaying the image file.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby ivan on Thu Oct 12, 2006 4:42 pm

Thanks for prompt reply. But if I zip the jpg file, I have to spend nearly double hard disk space. One jpg for preview, one zip file for download. And it will cause inconvenience for people to unzip files.
ivan
 
Posts: 2
Joined: Thu Oct 12, 2006 3:48 pm

Postby johneva on Thu Oct 12, 2006 5:06 pm

The only other way is to trust the user to right click the image and save as which is how I get images from sites rather than looking for a link to download the file.

Otherwise as you say when linking to the image file all it will do is display the image in a new window.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby ngpgeeta on Sat Nov 18, 2006 11:52 am

Show the image in your program using <img> tag and let user by itself save it by right clicking on it.
ngpgeeta
 
Posts: 19
Joined: Sat Nov 18, 2006 11:30 am


Who is online

Users browsing this forum: No registered users and 6 guests