>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
try this: <!--- set path to folder ---> <cfset variables.folderpath = "C:\whatever\" /> <!--- set file name and construct full path to file ---> <cfset variables.fileName = "foo.zip" /> <cfset variables.filepath = variables.folderpath & variables.filename /> <cfcontent type="application/zip" /> <cfheader name="Content-Disposition" value="filename=#variables.filepath#" /> this will allow the user to choose to open it in the browser window or download it to disk. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:284810 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
