Hello,
We use Official Dropbox .Net v2 SDK.
Average uploading speed for some our clients is 50-100 kb/sec.
We use the following code to upload chunks
log.Trace("{0}. File chunk taken. CountBytes: \"{1}\"", nameof(UploadFileImpl), countBytes);
using (var memStream = new MemoryStream(buffer.Take(countBytes).ToArray()))
{
using (var t = dropBoxClient.Files.UploadSessionAppendV2Async(new UploadSessionCursor(sessionId, offset), false,memStream))
{
t.Wait();
}
}
offset += (ulong) countBytes;
log.Trace("{0}. File chunk uploaded. Offset: \"{1}\"", nameof(UploadFileImpl), offset);
In client's log we can see the following record:
2017-11-16 12:01:43.3748|UploadFileImpl. File chunk taken. CountBytes: "2097152"
2017-11-16 12:02:21.7800|UploadFileImpl. File chunk uploaded. Offset: "3909091328"
Uploaded 2mb in 40 sec. ~ 50 kb/sec
Any ideas?
PS. Client's internet connection is 5-20 mb/sec.