Something like this:
<!--- Upload the file --->
<cffile
action="upload"
filefield="uploadFile"
destination="C:\Inetpub\wwwroot\TEMP\"
nameconflict="makeunique">
<!--- Get the filename --->
<cfset FileName = CFFILE.ServerFile>
<!--- BEGIN REMOVE - DEBUGGING --->
<cfoutput>#FileName#</cfoutput>
<!--- END REMOVE - DEBUGGING --->
<!--- Open an FTP Connection --->
<cfftp
connection = "myConnection"
username = "FTP_UserName"
password = "FTP_Password"
server = "ftp.thesite.com"
action = "open"
stopOnError = "Yes">
<!--- BEGIN REMOVE - DEBUGGING --->
<p>Did Open Connection succeed?
<cfoutput>#cfftp.succeeded#</cfoutput>
<!--- END REMOVE - DEBUGGING --->
<!--- put the file --->
<cfftp
connection = "myConnection"
action = "putFile"
transferMode = "binary"
localFile = "C:\Inetpub\wwwroot\TEMP\#FileName#"
remoteFile = "C:\Temp\NEW_#FileName#">
<!--- BEGIN REMOVE - DEBUGGING --->
<p>Did Upload succeed?
<cfoutput>#cfftp.succeeded#</cfoutput>
<!--- END REMOVE - DEBUGGING --->
<!--- Close the connection --->
<cfftp
connection = "myConnection"
action = "close"
stopOnError = "Yes">
<!--- BEGIN REMOVE - DEBUGGING --->
<p>Did Close Connection succeed?
<cfoutput>#cfftp.succeeded#</cfoutput>
<!--- END REMOVE - DEBUGGING --->
<!--- Delete the local file --->
<cffile
action="delete"
file="C:\Inetpub\wwwroot\TEMP\#FileName#">
--
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"BrIdeas" <webforumsuser@macromedia.com> wrote in
message
news:en20s7$5ir$1@forums.macromedia.com...
> Just to clarify then, once I do the cffile, how would my
cfftp tag look?
>
> I know you have to do:
> <cfftp connection="myConnection" action="putFile"
passive="yes">
>
> But how do I tell it where to find the file uploaded to
the CF temp folder
> and
> then change the remote directory location?
>
>