Try this:
http://cfapostle.com/tests/cfcontent/
<A HREF="Download.cfm/LocalPeople.xls">View Local People</A>
/////////////////////////// Download.cfm //////////////////////////
<HTML>
<TITLE>Beer is Good</TITLE>
<BODY BGCOLOR="EEEECC">
<CFCONTENT TYPE="application/vnd.ms-excel">
<TABLE BORDER="EECCEE">
<TR HEIGHT="40">
<TH>#ID</TH>
<TH>First</TH>
<TH>Last</TH>
<TH>SSN</TH>
</TR>
<TR HEIGHT="50">
<TD>1</TD>
<TD>Mocha</TD>
<TD>Dog</TD>
<TD>??</TD>
</TR>
<TR HEIGHT="80">
<TD>2</TD>
<TD>Bill</TD>
<TD>Gates</TD>
<TD>$$$$$$</TD>
</TR>
</TABLE>
</BODY>
</HTML>
/////////////////////////// Download.cfm //////////////////////////
----- Original Message -----
From: "Curtis C. Layton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 13:20
Subject: Downloading Files via CFContent
> I'm trying to download files using CFContent using the following code.
>
> <CFCONTENT TYPE="application/unknown" FILE="#FileLocation#filename#">
>
> Is there a way to change the default file name from the cold fusion
> template's name to the actual file name? I'm trying to have users
download
> files, but I don't want them to open the files in their browser. I want
to
> mask the location of the files. Please help.
>
>
> Curtis C. Layton
> Senior Web Applications Developer
> Words In Progress, Inc.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists