This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C04E88.336F47C0
Content-Type: text/plain;
        charset="iso-8859-1"

Hello,

Does anyone know how to force the browser to download a file?
I'm using the following code, and it works for word documents, but
not text files.

<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=#get_record.File_Name#">
<CFCONTENT TYPE="application/octet-stream"
FILE="#filePath#\#get_record.File_Name#" DELETEFILE="No">

The free drive sites accomplish this...

Thanks!

- Scott

------_=_NextPart_001_01C04E88.336F47C0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Force Download in Browser</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hello,</FONT>
</P>

<P><FONT SIZE=3D2>Does anyone know how to force the browser to download =
a file?</FONT>
<BR><FONT SIZE=3D2>I'm using the following code, and it works for word =
documents, but</FONT>
<BR><FONT SIZE=3D2>not text files.</FONT>
</P>

<P><FONT SIZE=3D2>&lt;CFHEADER NAME=3D&quot;Content-Disposition&quot; =
VALUE=3D&quot;attachment; =
filename=3D#get_record.File_Name#&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;CFCONTENT =
TYPE=3D&quot;application/octet-stream&quot; =
FILE=3D&quot;#filePath#\#get_record.File_Name#&quot; =
DELETEFILE=3D&quot;No&quot;&gt;</FONT>
</P>

<P><FONT SIZE=3D2>The free drive sites accomplish this...</FONT>
</P>

<P><FONT SIZE=3D2>Thanks!</FONT>
</P>

<P><FONT SIZE=3D2>- Scott</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C04E88.336F47C0--
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to