Reputation: 873
In my application I use below code to upload a file to the server.
response = (HttpWebResponse)request.GetResponse();
where request.Method is "PUT".
Is there a way to get the number of bytes uploaded to the server.
Thanks in advance
Upvotes: 0
Views: 122
Reputation: 11397
why you can't try with WebClient
E.g:
WebClient wc = new WebClient();
byte[] s = wc.UploadFile("string address", "string fileName");
Upvotes: 0