HI,
Using relative-path can be done to store the
base-path in an application-variable in application.cfm:
<cfset application.base = "c:\inetpub\
to upload the file:
<cffile action="UPLOAD"
filefield="img1"
destination="#application.base#\fotos\"
nameconflict="OVERWRITE"
accept="image/gif">
To rename the file goes like this:
<cffile action="UPLOAD"
filefield="img1"
destination="c:\inetpub\
nameconflict="MakeUnique"
accept="image/gif">
There is a file-object 'serverFile' that holds
the generated name.
<cfset xx = #cffile.serverFile#>
With xx you can make an entry in a database to retrieve
this file later.
If you insist on naming this file exactly as you want, you
can rename the file after upload with 'makeUnique':
<cffile action="rename" source="#application.base#\adirectory\#xx#
destination="yourname">
Hope this helps
Toon [sig][/sig]