This project has moved. For the latest updates, please go here.

How can I upload a file by WebClient in WinFrom application?

Feb 1, 2012 at 4:21 PM

Like:

WebClient myWebClient = new WebClient();

myWebClient.UploadFile("http://localhost/u.aspx", @"d:\1.rar");

 

 u.aspx works well in web browser, but it doesn't work  in winform application.

why?

thanks.