use this above your <cfcontent> tag.

<cfheader name="content-disposition" value="attachment;
filename=""#myfilename#""">

> [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.


> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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

Reply via email to