Are you masking the url because you want to conceal the true location of the file, or
for cosmetic reasons? If the former, you can use cfcontent (and store your files off
the web root for security).
This is just passes the 8+3 filename via the url. You could come up with all sorts of
ways to conceal the true filename, some simple (encrypted and urlencoded), some
complex.
I'd put some security on a page like this, too.
<A HREF="pushfile.cfm?FileName=foo.pdf">
pushfile.pdf:
<CFSET variables.PushFile="d:\bar\"&url.FileName>
<CFIF FileExists(variables.PushFile)>
<CFHEADER
NAME="content-disposition"
VALUE="attachment; filename=#url.FileName#">
<CFCONTENT
TYPE="application/unknown"
FILE=#variables.PushFile#>
<CFABORT>
</CFIF>
<HTML><HEAD><TITLE>File Not Found</TITLE></HEAD><BODY>
File Not Found
</BODY></HTML>
---------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists