Jump to content

how to open/download an image


bm4499

Recommended Posts

Whenever you link a person to part of your webpage, you are telling them to access a file on that page. The browser interprets what to do based on what kind of ending it is (php/html: display content, filetypes (zip, rar, bin, exe, etc.): show download, images: show image).

 

So, you can apparently set the header content-disposition which will override this behavior.

 

Look here: http://support.microsoft.com/kb/260519

 

I would take them to a php page that sets the header then jquery that loads the image and outputs it to the user? I'm not sure how to do this, to be honest. Actually, that wouldn't work. You would have to load the image with php so there would be no other html present, but do change the header. This could take some experimentation to get to work!

 

It's a lot simpler to educate the user perhaps with a hover tooltip/div of some kind?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.