TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shraddha Ital
NA
114
2.3k
How To Catch File Path Of Client Machine??
Mar 19 2018 7:02 AM
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();
Reply
Answers (
4
)
DevExpress Controls in Asp.Net
In Ado.net related to my queation