<?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 Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async() in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222303#M11854</link>
    <description>Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async() in Dropbox.Api.Files.UploadSessionLookupError: incorrect_offset in DropBox.Api.DropBoxRequestHandler.d__d`3.MoveNext(). Example sessionId AAAAAAAAAEDksu9YYAiFbQ Files less than 4Gb uploads whith no problem.</description>
    <pubDate>Wed, 29 May 2019 09:22:24 GMT</pubDate>
    <dc:creator>RomanRGS</dc:creator>
    <dc:date>2019-05-29T09:22:24Z</dc:date>
    <item>
      <title>Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async()</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222303#M11854</link>
      <description>Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async() in Dropbox.Api.Files.UploadSessionLookupError: incorrect_offset in DropBox.Api.DropBoxRequestHandler.d__d`3.MoveNext(). Example sessionId AAAAAAAAAEDksu9YYAiFbQ Files less than 4Gb uploads whith no problem.</description>
      <pubDate>Wed, 29 May 2019 09:22:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222303#M11854</guid>
      <dc:creator>RomanRGS</dc:creator>
      <dc:date>2019-05-29T09:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async()</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222449#M11894</link>
      <description>Can you share the code you're using that reproduces this issue? Thanks in advance!</description>
      <pubDate>Mon, 22 May 2017 21:16:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222449#M11894</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-22T21:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async()</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222496#M11900</link>
      <description>&lt;P&gt;This code get error on method UploadSessionAppendV2Async after 4gb upload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;static async Task ChunkUpload(DropboxClient client, String path, FileStream stream, int chunkSize)
{
int numChunks = (int)Math.Ceiling((double)stream.Length / chunkSize);
byte[] buffer = new byte[chunkSize];
string sessionId = "";
for (int idx = 0; idx &amp;lt; numChunks; idx++)
{
int bytesRead = stream.Read(buffer, 0, chunkSize);
using (var memStream = new MemoryStream(buffer, 0, bytesRead))
{
if (idx == 0)
{
var result = await client.Files.UploadSessionStartAsync(false, memStream);
sessionId = result.SessionId;
}
else
{
var cursor = new UploadSessionCursor(sessionId, (ulong)((uint)chunkSize * (uint)idx));
if (idx == numChunks - 1)
{
FileMetadata fileMetadata = await client.Files.UploadSessionFinishAsync(cursor, new CommitInfo(path), memStream);
}
else
{
await client.Files.UploadSessionAppendV2Async(cursor, false, memStream);
}
}
}
}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 16:52:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222496#M11900</guid>
      <dc:creator>RomanRGS</dc:creator>
      <dc:date>2017-05-23T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async()</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222572#M11909</link>
      <description>Thanks! It looks like you're using a sample we originally posted on the forum here. Thanks to your post, we found an issue with it that would cause it to fail for very large files, due to the use of smaller int types. We've posted an updated version that uses bigger types here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/1358/uploading-a-file-using-the-dropbox-net-library#t=201705231652364198429" target="_blank"&gt;https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/1358/uploading-a-file-using-the-dropbox-net-library#t=201705231652364198429&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The use of longs instead of ints lets it support very large offsets.</description>
      <pubDate>Tue, 23 May 2017 16:55:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222572#M11909</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-23T16:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, i get error after upload 4Gb data with .Net 4.5 UploadSessionAppendV2Async()</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222660#M11922</link>
      <description>&lt;P&gt;works fine, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 07:19:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hello-i-get-error-after-upload-4Gb-data-with-Net-4-5/m-p/222660#M11922</guid>
      <dc:creator>RomanRGS</dc:creator>
      <dc:date>2017-05-24T07:19:21Z</dc:date>
    </item>
  </channel>
</rss>

