>                      FtpClient1.HostFileName  := 'UFILE_1MB.pdf';
>                      FtpClient2.LocalFileName := 
> 'C:\Evrizonikotita\UFILE_1MB.pdf';
>                      FtpClient2.PutAsync;
> i get the following error : 'STOR ': Invalid number of parameters

You have two FTP component on your form and your confused the first with the 
second so FtpClient2 doesn't have his HostFileName assigned.

--
[EMAIL PROTECTED]
http://www.overbyte.be

----- Original Message ----- 
From: "vverdenga" <[EMAIL PROTECTED]>
To: <twsocket@elists.org>
Sent: Thursday, May 25, 2006 12:43 PM
Subject: [twsocket] FtpClient1 and PutAsync proble in parameters


> hi, i'm using Delphi 5 and i'm trying to upload a file from my pc to an 
> ftp server
>
> i use the folowing code
>
>                      FtpClient1.HostFileName  := 'UFILE_1MB.pdf';
>                      FtpClient2.LocalFileName := 
> 'C:\Evrizonikotita\UFILE_1MB.pdf';
>                      FtpClient2.PutAsync;
>
>
> i get the following error : 'STOR ': Invalid number of parameters
>
> what is going wrong?
> -- 
> 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 

-- 
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