Above your CFCONTENT tag, you have to create a new header (named "content-disposition") to supply the new name, like:
<CFHEADER NAME="content-disposition" VALUE="attachment; filename=something.pdf"> <CFCONTENT TYPE="application/pdf" FILE="something.pdf" DELETEFILE="No"> Make sure that the VALUE attribute of the CFHEADER tag begins with "attachment" instead of "inline." -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: ColdFusion (CFTalk) [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 10:59 AM > To: CF-Talk > Subject: CFCONTENT and file downloads > > > [CF5 Server Pro, Windows 2000] > > I have a feeling I've forgotten something obvious, but... > > In a nutshell: > > I have a template which uses CFCONTENT to download the contents of a file > on the server to the browser. The file save dialog on the browser pops > up... but the name of the file shown is the name of the template > (somename.cfm) not the name of the actual file on the server > (something.pdf > in this case). Of course, the file then arrives on the other end with the > wrong extension... etc... > > Anyone any ideas on how to get the right filename down to the client. If > necessary, I can use a fixed name - the important thing is > getting the .pdf > extension (as the files are PDF's). > > Regards, > > SB > > > > Scott Bartlett > BTA Limited, 100 High Street Wandsworth, London SW18 4LA, United Kingdom > e: [EMAIL PROTECTED] v: +44 (0)20 8871 4240 f: +44 (0)20 8871 4584 > > Network Consultancy and Support for Windows 9x/NT and MacOS. > Internet connectivity, solutions, and business services. > http://www.bta.com. > > This message is intended only for the use of the person(s) ("The intended > recipient(s)") to whom it is addressed. It may contain > information which is > privileged and confidential within the meaning of applicable law. If you > are not the intended recipient, please contact the sender as soon as > possible. The views expressed in this communication may not > necessarily be > the views held by BTA. > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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