Stick the following code above the CFCONTENT tag:

        <CFHEADER
                NAME="content-disposition"
                VALUE="attachment; filename=someFILE.fnm">

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 10:46 PM
> To: CF-Talk
> Subject: RE: Push" and CFFILE Question - one more question!
>
>
> Hi,
>
> Still having a little bit of trouble. Hope you don't mind giving a little
> advice
>
> I'm successfully writing the required file to a directory on the server.
> Let's call the file "someFILE.fnm". (Basically a text file - the extension
> is required by the program that's going to open it later...)
>
> Next I'm doing this:
>
> On the page "pushFILE.cfm":
>
> <cfcontent type="text/plain"
>       file="c:\inetpub\hostroot\www.mySITE.com\files\someFILE.fnm"
>       deletefile="No">
>
> As soon as that file is written, the user needs a standard "Open"
> or "Save"
> alert box as the file is pushed to them.  Currently the file is opening as
> the page it's being called from ("pushFILE.cfm") in the browser, with
> "someFILE.fnm" as the content on that page.
>
> How can I get it to push "someFILE.fnm" at them, with the file name intact
> and the option to save?
>
> Hmmm
>
> Thanks...
>
> Les
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to