Hello,
I Am Uploading The File From Client Machines Folder To Server But I didn't Get The Folder Location Of Client Machine
My Code -
UploadFileToFTP(@"D:\PolicyDocument\" + pdfFiles[i], "");
string ftpfullpath = "MyServerPath";
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create(ftpfullpath);
ftp.Credentials = new NetworkCredential("UserName", "Pass");
ftp.KeepAlive = true;
ftp.UseBinary = true;
ftp.Method = WebRequestMethods.Ftp.UploadFile;
FileStream fs = File.OpenRead(source);
byte[] buffer = new byte[fs.Length];
fs.Read(buffer, 0, buffer.Length);
fs.Close();
Stream ftpstream = ftp.GetRequestStream();
ftpstream.Write(buffer, 0, buffer.Length);
ftpstream.Close();

Yogesh GhorpadeRank #2,756 · 509 reputationPosted Jun 27, 2018, 1:32 AM EDT
Shraddha Ital102 reputationPosted Jun 28, 2018, 12:42 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 19, 2018, 3:48 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 27, 2018, 5:45 AM EDT