WebCopy and FTP transf

Hi i ve


    WebCopy.Items.Clear();
    With WebCopy.Items.Add Do Begin
      Protocol:=wpFtpUpload
      FTPHost:=HOST_NAME;
      FTPUserID:=FOLD_USER_NAME;
      FTPPassword:=FOLD_PASSWORD;
      URL:='c:\myfile.txt';
      TargetDir:='/DatiPDV/Zoomania/';
      FTPPassive=True
      FTPMode = fmBINARY
     End;
    WebCopy.Execute();

    Sometime file was transferred fine sometime corrupted ... is random !!! 
Help me





Do you please have somewhat more detail?

What is the file size? Is the internet connection stable?

Bruno, i used idFTP and go very fine !!! your web copy i think fails because not wait file operation... i tryed executeandthreadwait and same problem, files are cutted !

NOTE : I use it ... in a timer idle but i stop timer, execute webcopy and restart timer, BUT always same problem .... 

I order to be able to investigate this, we will really need more details. We have no other problem reports and use this code in internal systems here that run 24/7 without issues.

What is the file size you transfer? Is the problem happening with multiple FTP servers?

text file very small, less than 1 mb

Did you test with multiple FTP servers? 


what is ?

Did you test with a different FTP server

no, one