This can be done quite nicely with the following code:
--------------------------------------------------------
{HTML file page, can be any CF/HTML/other content, code below will
send file as page attachment and popup a download box}

<cfif structKeyExists({filecontentVar scope},"{filcontentVar name}")>
<cffile action="READBINARY" file="#expandPath('{path to content
file}')#" variable="fileContent">
<cfheader name="Content-Disposition" value="attachment;
filename="{contentFileName}.{ext}">
<cfcontent type="{filecontent MIME type}" reset="yes"
/><cfoutput>#toString(fileContent})#</cfoutput></cfif>
--------------------------------------------------------

Laterz,
J

On Thu, 03 Mar 2005 13:14:19 -0400, Protoculture <[EMAIL PROTECTED]> wrote:
> I want my template to deliver ( start a download ) form the current template, 
> without opening a new window or calling a seperate template. Basically... I 
> need to run some processing in cf and then call the download....how can this 
> be done?
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197372
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to