<cfheader NAME="Content-Disposition" VALUE="inline;
filename=whateveryouwanttheresultingfilenametobe.txt">
<cfcontent type="application/superrandomnoway"
file="#expandpath("test.txt")#" deletefile="No">


i chose application/superrandomnoway cause it's unlikely to launch any
related apps.

-----Original Message-----
From: Todd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 15:14
To: CF-Community
Subject: Re: Download Text file


I guess you could use <cfcontent> and set some mime type that would normaly
cause a download prompt.

Todd

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 4:47 PM
Subject: Download Text file


> OK, I know this is an HTML 101 question, but I can not for the life of
> me remember how to do this.  How can I download a text file by simply
> allowing the user to click on a link?  Normally, you just treat it like
> any other non html file and the browser will invoke the explorer window
> and give you the change to "Save as..." but the .txt file just shows up
> in the browser.  Anyone? Bueller? Bueller?
>
> Thanks all,
>
> Michael Corrigan
> Programmer
> Endora Digital Solutions
> 1900 S. Highland Avenue, Suite 200
> Lombard, IL 60148
> 630/627-5200 x-136
> 630/627-5255 Fax

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to