I am using dropnet (dropbox c# API) to upload files to dropbox. Problem is I need to do that in chunks to monitor progress. Just read at one place that Dropbox supports chunk upload (https://www.dropbox.com/developers/blog/21) and it has library for Java, etc. I need to do in C#, any help on this.
Dropnet uses restsharp and some say restsharp has to implement it. Below is the part where actual upload occurs
private static HttpWebResponse GetRawResponse(HttpWebRequest request)
{
try
{
return (HttpWebResponse)request.GetResponse(); // UPLOAD OCCURS HERE
}
catch (WebException ex)
{
if (ex.Response is HttpWebResponse)
{
return ex.Response as HttpWebResponse;
}
throw;
}
}
Is there no way we can get progress bar by altering code? Also is there any way we can get progress bar for any REQUEST.GetResponse(), leave context of Dropbox (because this will solve our issue).
Thanks.