I'm wondering how you go about getting status updates during the file transfer?
Here is my simple test code that I am experimenting with:
FTPClient ftp = new FTPClient();
ftp.RemoteHost = textBoxFTPServer.Text;
ftp.Connect();
ftpOutput.AppendText("Connected to " + textBoxFTPServer.Text + "\n");
ftp.Login(textBoxFTPUser.Text,textBoxFTPPassword.Text);
ftpOutput.AppendText("Login as " + textBoxFTPUser.Text + " successful.\n");
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.TransferType = FTPTransferType.BINARY;
ftpOutput.AppendText("Sending file " + remoteFile + "...\n");
ftp.Put(localFile,remoteFile);
ftpOutput.AppendText("Bytes transferred: " + ftp.Size(remoteFile) + "\n");
ftp.Quit();
If anyone can point me in the right direction for getting status updates it would be very helpful.
Thanks!
-Steve