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();