Rooted around a bit and have ended up with this which grabs a Word doc
from outside the web root and serves it up.
Using CFMX, if you do "File | Save As" in the browser with the Word
document displayed, the filename displayed in the Save As dialogue is
the name of the ColdFusion template, not the name of the Word document.
Is there any way to get it to be the name of the Word document? Thanks!
<cfparam name="url.file">
<cfif fileExists(request.paths.minutes & url.file & ".doc")>
<cfheader
name="Content-Disposition"
value="inline; filename=#url.file#.doc">
<cfcontent
type="application/msword"
file="#request.paths.minutes##url.file#.doc"
deletefile="No"
reset="Yes">
</cfif>
--
Aidan Whitehall <mailto:[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental Ltd +44 (0)1695 51775
Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]