Tag : Upload file via FTP Upload file via FTP using asp.net

Step 1: Add the below namesapce at the top of the code behind. using System.Net; using System.Text.RegularExpressions; using System.IO; Step 2: Add the following method which will upload the file. public string UploadFile() { try { string filePath = Server.MapPath(@"FolderNamefile.jpg"); string FtpUrl = "ftp://ftp.domain.com/"; string userName = "ftp_user"; string password = "ftp_password"; string UploadDirectory = ..

Read more