<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Official Dropbox .Net v2 SDK, slow uploading speed for large files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253167#M14609</link>
    <description>First, note that the connection speed will vary from place to place. Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds.&lt;BR /&gt;&lt;BR /&gt;Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our control. Some ISPs also throttle sustained connections so if you see an initial high connection speed followed by lower speeds, that could be the reason.&lt;BR /&gt;&lt;BR /&gt;Also, I see from the output though that it appears you're using about 2 MB chunks. I recommend using a larger chunk size, such as 8 MB or 16 MB (or even higher, depending on the connection). Using a larger chunk size can increase the overall speed by reducing the number of individual HTTPS requests needed, reducing overhead. It does come at the cost of having to resend more data when any one particular request fails though.</description>
    <pubDate>Fri, 17 Nov 2017 16:40:41 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-11-17T16:40:41Z</dc:date>
    <item>
      <title>Official Dropbox .Net v2 SDK, slow uploading speed for large files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253124#M14605</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use Official Dropbox .Net v2 SDK.&lt;/P&gt;
&lt;P&gt;Average uploading speed for some our clients is 50-100 kb/sec.&lt;/P&gt;
&lt;P&gt;We use the following code to upload chunks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;log.Trace("{0}. File chunk taken. CountBytes: \"{1}\"", nameof(UploadFileImpl), countBytes);
using (var memStream = new MemoryStream(buffer.Take(countBytes).ToArray()))
{
&amp;nbsp; &amp;nbsp; using (var t = dropBoxClient.Files.UploadSessionAppendV2Async(new UploadSessionCursor(sessionId, offset), false,memStream))
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.Wait();
&amp;nbsp; &amp;nbsp; }
}
&amp;nbsp;
offset += (ulong) countBytes;
log.Trace("{0}. File chunk uploaded. Offset: \"{1}\"", nameof(UploadFileImpl), offset);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In client's log we can see the following record:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;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"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uploaded 2mb in 40 sec. ~ 50 kb/sec&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. Client's internet connection is 5-20 mb/sec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:16:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253124#M14605</guid>
      <dc:creator>Ivan_Gusev</dc:creator>
      <dc:date>2020-05-29T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Official Dropbox .Net v2 SDK, slow uploading speed for large files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253167#M14609</link>
      <description>First, note that the connection speed will vary from place to place. Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds.&lt;BR /&gt;&lt;BR /&gt;Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our control. Some ISPs also throttle sustained connections so if you see an initial high connection speed followed by lower speeds, that could be the reason.&lt;BR /&gt;&lt;BR /&gt;Also, I see from the output though that it appears you're using about 2 MB chunks. I recommend using a larger chunk size, such as 8 MB or 16 MB (or even higher, depending on the connection). Using a larger chunk size can increase the overall speed by reducing the number of individual HTTPS requests needed, reducing overhead. It does come at the cost of having to resend more data when any one particular request fails though.</description>
      <pubDate>Fri, 17 Nov 2017 16:40:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253167#M14609</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-17T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Official Dropbox .Net v2 SDK, slow uploading speed for large files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253476#M14629</link>
      <description>&lt;P&gt;That is all clear, thanks.&lt;/P&gt;
&lt;P&gt;But speed is 50 kb/sec...&lt;/P&gt;
&lt;P&gt;How can we test the uploading speed to find the error? Should we upload a file via browser and check if the uploading speed is equal?&lt;/P&gt;
&lt;P&gt;P.S.&lt;/P&gt;
&lt;P&gt;We use a dynamic chunk size. If we receive a timeout error then we start to upload from the beginning with reduced chunk size. By default we upload chunk size = 8 mb.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:32:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253476#M14629</guid>
      <dc:creator>Ivan_Gusev</dc:creator>
      <dc:date>2017-11-20T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Official Dropbox .Net v2 SDK, slow uploading speed for large files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253552#M14640</link>
      <description>&lt;P&gt;The web site uses a somewhat different piece of infrastructure than the API, so that may not be a good comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to test your connection to&amp;nbsp;the&amp;nbsp;Dropbox API content servers directly though, you can&amp;nbsp;test a simpler /2/files/upload&amp;nbsp;API call, e.g., using curl:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would eliminate the complexity of using upload sessions, and let you see what kind of speeds you're getting for a single connection.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:59:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Official-Dropbox-Net-v2-SDK-slow-uploading-speed-for-large-files/m-p/253552#M14640</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-20T18:59:53Z</dc:date>
    </item>
  </channel>
</rss>

