<?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 Upload API - skip upload, when file with the same content already uploaded in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-API-skip-upload-when-file-with-the-same-content-already/m-p/511711#M25181</link>
    <description>&lt;P&gt;Dropbox windows app is smart and when currently uploading file already exists somewhere in dropbox (file with the same content hash I guess), it doesn't fully upload it again. It gets marked as uploaded almost immediately. Is it possible to achieve such optimization via the Dropbox Upload API? I use&amp;nbsp;&lt;SPAN&gt;UploadSessionStartAsync APi, but it always fully upload any file even if the file already exists in neighbor directory.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 19:06:39 GMT</pubDate>
    <dc:creator>jijik</dc:creator>
    <dc:date>2021-04-07T19:06:39Z</dc:date>
    <item>
      <title>Upload API - skip upload, when file with the same content already uploaded</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-API-skip-upload-when-file-with-the-same-content-already/m-p/511711#M25181</link>
      <description>&lt;P&gt;Dropbox windows app is smart and when currently uploading file already exists somewhere in dropbox (file with the same content hash I guess), it doesn't fully upload it again. It gets marked as uploaded almost immediately. Is it possible to achieve such optimization via the Dropbox Upload API? I use&amp;nbsp;&lt;SPAN&gt;UploadSessionStartAsync APi, but it always fully upload any file even if the file already exists in neighbor directory.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 19:06:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-API-skip-upload-when-file-with-the-same-content-already/m-p/511711#M25181</guid>
      <dc:creator>jijik</dc:creator>
      <dc:date>2021-04-07T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Upload API - skip upload, when file with the same content already uploaded</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-API-skip-upload-when-file-with-the-same-content-already/m-p/511851#M25185</link>
      <description>&lt;P&gt;The Dropbox API doesn't offer a way to do this automatically, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could effectively reproduce this behavior though, at least within an account. To do, you'd need to do something like this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] to list the metadata for the contents of the account, which includes the 'content_hash' for each file. (You can cache this and update it over time as needed.)&lt;/LI&gt;
&lt;LI&gt;Before starting an upload of a file, &lt;A href="https://www.dropbox.com/developers/reference/content-hash" target="_self"&gt;compute the content hash&lt;/A&gt; of the local data.&lt;/LI&gt;
&lt;LI&gt;Check if that local content hash exists in the account already, by looking for it in the metadata retrieved in the first step.&lt;/LI&gt;
&lt;LI&gt;If the content_hash is found in the existing metadata, use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-copy" target="_self"&gt;/2/files/copy_v2&lt;/A&gt; to copy the existing file to the new path instead of uploading it again. If it is not found, proceed to upload it normally (e.g., using UploadSessionStartAsync, etc.).&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:34:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-API-skip-upload-when-file-with-the-same-content-already/m-p/511851#M25185</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-04-07T15:34:19Z</dc:date>
    </item>
  </channel>
</rss>

