Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFTP, help needed...

Status
Not open for further replies.

ellasso

Programmer
Oct 12, 2001
14
CA
Hi, I'm trying to use cfftp but it does'nt work... In fact, it seems to work but does not.. it transfers the file name on the ftp server but the file hase 0 k ???

Could someone help me ?

Thanks and here's my code :

<cfftp action=&quot;OPEN&quot; username=&quot;*****&quot; password=&quot;*****&quot; connection=&quot;my_connect&quot; server=&quot;ftp.****.com&quot; stoponerror=&quot;Yes&quot;>

<cfftp name=&quot;change_rep&quot; connection=&quot;my_connect&quot; action=&quot;CHANGEDIR&quot; directory=&quot;
<cfftp action=&quot;PUTFILE&quot; connection=&quot;my_connect&quot; localfile=&quot;/var/ remotefile=&quot;GS500-bl-2RFG002.jpg&quot; transfermode=&quot;BINARY&quot; timeout=&quot;2000&quot; passive=&quot;Yes&quot;>

<cfoutput>#cfftp.errorText#</cfoutput>

<cfftp name=&quot;ferme&quot; connection=&quot;my_connect&quot; action=&quot;CLOSE&quot;>
 
Just for grins, try it without the connection caching. Get it working that way before you add the whole layer of the caching to the mix.
Code:
<!--- no CFFTP action=open or action=close... just the putfile --->
<cfftp action=&quot;PUTFILE&quot; username=&quot;*****&quot; password=&quot;*****&quot; server=&quot;ftp.****.com&quot; localfile=&quot;/var/[URL unfurl="true"]www/html/fichiers/ceto/GS500-bl-2RFG002.jpg&quot;[/URL] remotefile=&quot;GS500-bl-2RFG002.jpg&quot; transfermode=&quot;BINARY&quot; timeout=&quot;2000&quot; passive=&quot;Yes&quot; stoponerror=&quot;No&quot;>
Also, set stoponerror to &quot;no&quot; for testing. Then output cfftp.succeeded, cfftp.errorCode and cfftp.errorText. Either that or set passive to &quot;no&quot;. While running in passive mode, it's unclear whether any error will be significant enough to throw an exception back to CFFTP in order to stoponerror.

Hopefully one of these will give you a little more verbose error than you're getting now (which is nothing).
-Carl
 
:((

Thanks a lot but it does not work either.. I tried without the caching, no change.. stil a 0 k file.. Also the error message are all good : 226 transfer complete :(

Patrick
 
And you're sure you're looking at the file that it just transfered (check the file date)?
-Carl
 
Yep, where I do my test, there is only that file in the directory :(
 
Thanks a lot, it worked finally, it was a problem of virtual directory on the ftp, it looks like CFFTP doesn't like it...

Patrick
 
I also have some problem with this tag
i use it to upload from 1 server to another but it doesnt show the correct month, always 1 month and 12 hours behind
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top