Well remember when you do a cfcontent the cf code basically stops running and the file variable in the cfcontent is used opposed to the rest of the template. the rest of the template is NOT run. if you want multiple files then i would suggest listing the files and then the link on that page do the cfcontent.
Does that make sense? Like one page do an output and link to a cf template that does nothing but the cfcontent to that file.... You really cant get a browser to reliably do muntiple downloads.. well i guess i have never been able to not that it is impossible but it may take some work. ----------------------------- Trishan Singh Paracom Technologies 316-293-2900 ----- Original Message ----- From: "Shawn McKee" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 4:39 PM Subject: RE: Download a list of files to user > That works like a champ! > > Any idea why it falls out of the loop? > > Shawn > > -----Original Message----- > From: Trishan Singh [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 4:23 PM > To: CF-Talk > Subject: Re: Download a list of files to user > > > <CFHEADER NAME="Content-Disposition" > VALUE="filename=#TheFileNameYouWantToShowUp#"> > right before the cfcontent tag..... > > That help any? > > ----------------------------- > Trishan Singh > Paracom Technologies > 316-293-2900 > > > ----- Original Message ----- > From: "Shawn McKee" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Tuesday, July 16, 2002 4:06 PM > Subject: RE: Download a list of files to user > > > > I'm fine with that but how do I get cfcontent to maintain the file name? > > > > Shawn > > > > -----Original Message----- > > From: Andre Turrettini [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 16, 2002 3:57 PM > > To: CF-Talk > > Subject: RE: Download a list of files to user > > > > > > Why don't you make him a zip file on the server and cfcontent that? Lower > > bandwidth required. One cfcontent versus dozens(albeit a bigger one). I > > think theres some free zip utilities on the devcenter at macromedia.com. > > > > DRE > > > > -----Original Message----- > > From: Shawn McKee [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 16, 2002 2:53 PM > > To: CF-Talk > > Subject: Download a list of files to user > > > > > > I have a page where a user selects a list of reports to download. I would > > like to kick of a series of download windows to send these to the user. I > > tried: > > > > <cfquery datasource="#dsn#" name="rprtPath"> > > SELECT > > pub_report_path > > FROM > > pub_report_detail > > WHERE > > pub_report_id IN (#attributes.cndRprt#) > > </cfquery> > > > > <cftry> > > <cfloop query="rprtPath"> > > <cfcontent type="application/unknown" file="#pub_report_path#" > > deletefile="No"> > > </cfloop> > > <cfcatch type="Any"> > > <cfdump var="#cfcatch#"> > > </cfcatch> > > </cftry> > > > > But this has two problems. It only gives one file from the list and it is > > named with the name of the .CFM template. I need the entire list > downloaded > > and I need to maintain the names. > > > > Any help appreciated. > > > > Shawn McKee > > Manager, Web Development > > NewsStand, Inc. > > 8620 Burnet Rd., Suite 100 > > Austin, TX 78757 USA > > 512-334-5100 > > Read newspapers and magazines from around the world in a whole new way. > > NewsStand delivers them to your PC without paper and without delay! > > Try: http://www.newsstand.com?NSEMC=EMNSI000001 > > > > > > > > > > > > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

