> I am looking for a solution to a downloading problem i am having with a
> link.  I am thumbnailing images, and am wanting to have a "download" link
> next to the thumbnail that will automatically open up the 'save
> to' window.
> Obvioulsy if i just link directly to the .jpg file, the download
> window will
> not pop up, and it just redirects me to a blank page in my default browser
> and shows the full size image.  Any suggestions??

Since browsers naturally display all file extensions that it knows should be
displayed, when you link to a graphic it'll try to show it not save it

What you need to do is pass the image with a different extension (one that
the browser won't understand) and that should display the "Save As" dialog

What I'd do is have a CF template that CFcontent the image and gives it a
dummy name, so you can have a hyperlink like
ImageDownload.cfm/myImage.gif/myImage.gif-file

But then users will have to change the extension themselves - requires some
user intelligence

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to