CFFILE Upload Paths

Can CFFILE use relative paths when uploading files to the server? If not what is the best way to get the fully qualified path on a dynamic basis – in case directory structure changes are made on the server?

Thanks.

You can use the function GetDirectoryFromPath.

Create a new variable (like “CurrentDir”):
<cfset CurrentDir=GetDirectoryFromPath(ExpandPath(“.”))>

Good resources:
http://www.cfhub.com/language/INDEX.CFM?ID=96
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi92.htm