Create FTP RequestFtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));Setup your FTP Settingsrequest.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(username, password);
request.UsePassive = false;
request.UseBinary = true;
request.KeepAlive = false;using System.IO we can load the fileRead more: My.I.T.Side
request.Credentials = new NetworkCredential(username, password);
request.UsePassive = false;
request.UseBinary = true;
request.KeepAlive = false;using System.IO we can load the fileRead more: My.I.T.Side
0 comments:
Post a Comment