You would not want to use form.putfile. Rather you want the result of
the cffile tag's handling of the file upload. Specifically you want
file.serverfile (if I remember right). 

Remember that cfftp can't touch the client's box. You must use cffile to
handle the file upload. This gives you access to the uploaded file. You
would then use cfftp to move it to the other server.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Smith, Daron [PA] [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, December 06, 2002 11:06 AM
> To: CF-Talk
> Subject: CFFTP not working
> 
> 
> We recently upgraded to CFMX from 5 and CFFTP is no longer 
> working the same way as it did before.  I use form submission 
> to select the file, then use cfftp to do the upload.  This 
> worked fine with 5 but now it seems like it is not 
> recognizing the local file on my machine (The client).  It 
> works from the CF server to the ftp server I want to move 
> files to.  Did something
> change with CFFTP in MX?   Do I need to add more information 
> to specify the
> client machine and not the server is the home of the file?  
> Below is my
> code:
> 
> <cfftp connection="ftp_con" action="putfile" 
> localfile="#form.putfile#" 
> remotefile="#getfilefrompath(form.putfile)#" stoponerror="no">
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to