Sending file by using FTP

  • Thread starter Thread starter Magnus Blomberg
  • Start date Start date
M

Magnus Blomberg

Hello!

I am developing a C# windows application that should send a file using FTP.
Does anyone knows how to make my application do this. I haven't found the
correct object to perform this.
It should connect, login, upload the file, and then disconnect. If possible
I also want to add a progress bar to the transfer.

Any ideas?
Regards Magnus
 
Hello!

Thank you, it was very nice source code.

Unfortunately I've got another problem about this code:

I made an application for uploading files and it works properly against
my IIS 6 FTP-site. Unfortunately I now have to use it against another
FTP-site that doesn't know what PASV is. I then tried to make another
routine in my code for sending command PUT Xxxx, but I got the error
message "command not understood".

Does anyone knows how to solve this?!?!
Where to find the syntax for my object? :
Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)

Regards Magnus
 
Back
Top