This is a mirror of official site: http://jasper-net.blogspot.com/

How to upload files using C#

| Thursday, October 21, 2010
Create FTP Request

FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));

Setup your FTP Settings

request.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 file

Read more: My.I.T.Side

Posted via email from .NET Info

0 comments: