Did you not want to use the window.open suggestion I posted? It's the easiest way to go about this.
-----Original message----- From: Ray Champagne [email protected] Date: Wed, 14 Jan 2009 10:10:53 -0500 To: cf-community [email protected] Subject: Re: Forcing a download > Hmmm...not sure if you can do it for things like image files, but what I > guess you could do is make the link to a script like > file_download.cfm?file=myfile.xyz open in a new window <a > href="file_download.cfm?file=myfile.xyz" target="_blank">Download File</a>. > In file_download.cfm use cfcontent and cfheader to either display the > image, or force a download with the proper mime type (pdf, xls, doc, etc). > This is my "off the cuff" answer. Not sure if there are better ways to do > this... > > On Wed, Jan 14, 2009 at 8:44 AM, Erika L. Walker <[email protected]>wrote: > > > All different files. Filename fed in from DB. Code feeds path to file. > > Gifs, > > docs, pdfs, xls's, jpg's, etc. > > > > On Wed, Jan 14, 2009 at 9:39 AM, Ray Champagne <[email protected]> > > wrote: > > > > > What kind of file are we talking here? cfheader and cfcontent should get > > > you what I think you are asking for... > > > > > > On Wed, Jan 14, 2009 at 5:50 AM, Erika L. Walker <[email protected] > > > >wrote: > > > > > > > I know we've talked about this before ... > > > > > > > > I have a data listing and part of the listing includes a file. When the > > > > user > > > > clicks the file I need to force either a new window or a download. I > > > prefer > > > > a download. > > > > > > > > What's the popular procedure for this? > > > > > > > > Thanks in advance... > > > > Erika > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:284812 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
