String FileName = @"D:\text.txt";
String UriString = "http://server.com/text/";
WebClient MyWebClient = new WebClient();
//загружаем файл
byte[] responseArray = MyWebClient.UploadFile(UriString, "POST", FileName);