Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "open or save " a jpg file
August 2, 2007, 9:30 am
rate this thread
I'd like to make the same thing as in flickr.com: a link that, if clicked,
doesn't open the jpg file, but asks if open or save it.
open or save)
http://farm1.static.flickr.com/207/528622103_3a5c51e32b_o.jpg(link to jpg)
How can i make this?
Re: "open or save " a jpg file
You need to get your server to send a
header. The way this is done depends on your server. If you are using
apache 2, you need to add eg:
header set Content-Disposition attachment
to the appropriate .htaccess file.
If you have not got permission to write to .htaccess, then you can still
botch it using php.