renaming the extension generally won't do it (especially on iis). the webserver typically sends back correct mime type information regardless of the file extension. iis can get crafty that way. the reason is that the http webserver, like most ftp webservers, will opt to transfer non-binary files via plain-text for greater interoperability among browser/filetransfer clients; this behavior dates back to telnetting and shell client-server relationships; the idea was that plain-text is preferred for transmitting text since there's no translation needed and therefore less chance of error in the viewer correctly displaying or interpreting the data.
-brendan > -----Original Message----- > From: Maureen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 15, 2002 23:26 > To: CF-Community > Subject: Re: Download Text file > > > At 04:47 PM 1/15/02, you wrote: > >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? > > Couldn't you just name the file with an extension other than txt? > > ______________________________________________________________________ Macromedia ColdFusion 5 Training from the Source Step by Step ColdFusion http://www.amazon.com/exec/obidos/ASIN/0201758474/houseoffusion Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
