Hi, I am trying to upload a file via ftp using FtpWebRequest as below:
ftpRequest = (FtpWebRequest)WebRequest.Create("ftp.somethong.com");
ftpRequest.Method = WebRequestMethods.Ftp.UploadFile;
ftpRequest.Credentials = new NetworkCredential("user", "pass");
However, when connected and uploaded the file goes into the root, whereas, I need for it to be put into the /Upload directory.
I can make directories but how can I browse there, before uploading the file?