I am using a "PUT" rest webservice to upload a file to One Drive.I have used both UploadDataAsync and UploadStringAsync methods of webclient. But in both cases the UploadProgressChanged event is only fired after the whole file is uploaded.Please suggest.I need to show progress of upload operation in progress bar.
wc.UploadProgressChanged += new UploadProgressChangedEventHandler((sender, e) => webclient_UploadProgressChanged(sender, e, updateProgress));
wc.UploadStringCompleted += new UploadStringCompletedEventHandler(wc_UploadStringCompleted);
wc.UploadStringAsync(uriForUploading.Uri, "PUT", result);