Uploading files to file server using webclient class
问题 Currently I have an application that receives an uploaded file from my web application. I now need to transfer that file to a file server which happens to be located on the same network (however this might not always be the case). I was attempting to use the webclient class in C# .NET. string filePath = \"C:\\\\test\\\\564.flv\"; try { WebClient client = new WebClient(); NetworkCredential nc = new NetworkCredential(uName, password); Uri addy = new Uri(\"\\\\\\\\192.168.1.28\\\\Files\\\\test