how to upload file using FTP? how to do in c# .net
how to upload file using FTP? my requirement is i have 3 textbox for serveraddress,username,textbox.and one button for connect to server and another button for upload file. how to do in c# .net ? with example and code?
Jonathan NgPosted Dec 10, 2014, 11:36 PM
using System;
using ComponentPro.Net;
...
// Create a new instance.
Ftp client = new Ftp();
// Connect to the FTP server.
client.Connect("localhost");
// Authenticate.
client.Authenticate("test", "test");
// ...
// Upload local file 'c:\test.dat' to '/test.dat'.
client.UploadFile("c:\\test.dat", "/test.dat");
// ...
// Disconnect.
client.Disconnect();
Amit ChoudharyPosted Dec 27, 2012, 3:58 AM