I am using the following code in the FtpRequestDone event handler;

case RqType of

    ftpPutAsync: begin
        if(FtpCli.StatusCode= 226) then Delete(FileName);

What I am trying to do is to upload a file to server then delete the local 
file. In fact this code is working for the many cases but there are a few cases 
where the server says that uploaded files (local file sizes are greater than 0 
bytes) are zero bytes length and the localfile is deleted. What is wrong? I am 
using passive mode.


Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to