<?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: Dropbox upload file lookup_failed/incorrect_offset/ in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-upload-file-lookup-failed-incorrect-offset/m-p/644008#M29580</link>
    <description>&lt;P&gt;A 'lookup_failed/incorrect_offset' error like this indicates that the "offset" parameter value you supplied for the upload session in the API call does not match what the server currently expects for that upload session. The "offset" value is the amount of data (in bytes) that has been uploaded so far for that upload session. The "offset" should be the file length if you've completed uploading all of the file data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upload sessions work by having the app upload the file in pieces, across multiple requests. Each request, whether to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank"&gt;/2/files/upload_session/start&lt;/A&gt;, &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append" target="_blank"&gt;/2/files/upload_session/append_v2&lt;/A&gt;, or &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish" target="_blank"&gt;/2/files/upload_session/finish&lt;/A&gt;, can contain just a piece of the file. The "Content-Length" request header for any given request should indicate the size of the piece of data being sent in that particular request only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/upload/index.html#L65" target="_blank"&gt;an example here&lt;/A&gt;, written for the Dropbox JavaScript SDK, that may serve as a useful example of how the logic works for splitting the file and setting the offset.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 14:16:25 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-12-14T14:16:25Z</dc:date>
    <item>
      <title>Dropbox upload file lookup_failed/incorrect_offset/</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-upload-file-lookup-failed-incorrect-offset/m-p/643591#M29570</link>
      <description>&lt;P&gt;I use the upload_session/append_v2 to upload file , but it&amp;nbsp; return error when i call /upload_session/finish to save file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think offset should be the file length?&amp;nbsp; "/upload_session/finish ' response like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error_summary": "lookup_failed/incorrect_offset/.",&lt;BR /&gt;"error": {&lt;BR /&gt;".tag": "lookup_failed",&lt;BR /&gt;"lookup_failed": {&lt;BR /&gt;".tag": "incorrect_offset",&lt;BR /&gt;"correct_offset": 86736&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file length is&amp;nbsp;86601 , 86736 is the content-length in&amp;nbsp; request header. I set the Content-Length: 86601in the body.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 02:21:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-upload-file-lookup-failed-incorrect-offset/m-p/643591#M29570</guid>
      <dc:creator>Colaman</dc:creator>
      <dc:date>2022-12-13T02:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox upload file lookup_failed/incorrect_offset/</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-upload-file-lookup-failed-incorrect-offset/m-p/644008#M29580</link>
      <description>&lt;P&gt;A 'lookup_failed/incorrect_offset' error like this indicates that the "offset" parameter value you supplied for the upload session in the API call does not match what the server currently expects for that upload session. The "offset" value is the amount of data (in bytes) that has been uploaded so far for that upload session. The "offset" should be the file length if you've completed uploading all of the file data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upload sessions work by having the app upload the file in pieces, across multiple requests. Each request, whether to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank"&gt;/2/files/upload_session/start&lt;/A&gt;, &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append" target="_blank"&gt;/2/files/upload_session/append_v2&lt;/A&gt;, or &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish" target="_blank"&gt;/2/files/upload_session/finish&lt;/A&gt;, can contain just a piece of the file. The "Content-Length" request header for any given request should indicate the size of the piece of data being sent in that particular request only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/upload/index.html#L65" target="_blank"&gt;an example here&lt;/A&gt;, written for the Dropbox JavaScript SDK, that may serve as a useful example of how the logic works for splitting the file and setting the offset.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:16:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-upload-file-lookup-failed-incorrect-offset/m-p/644008#M29580</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-14T14:16:25Z</dc:date>
    </item>
  </channel>
</rss>

