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




______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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

Reply via email to