<?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 Overwrite upload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211635#M10658</link>
    <description>&lt;P&gt;&lt;U&gt;In Dropbox v2 sdk, the need to cover the replacement of existing documents, how to achieve? Similar to V1's ChunkedUploader.finish (path, parentRev). I use the UploadSessionFinishUploader.uploadAndFinish upload mode, can give me some help? &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Thank you！&lt;/U&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:24:45 GMT</pubDate>
    <dc:creator>蕾雷</dc:creator>
    <dc:date>2019-05-29T09:24:45Z</dc:date>
    <item>
      <title>Overwrite upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211635#M10658</link>
      <description>&lt;P&gt;&lt;U&gt;In Dropbox v2 sdk, the need to cover the replacement of existing documents, how to achieve? Similar to V1's ChunkedUploader.finish (path, parentRev). I use the UploadSessionFinishUploader.uploadAndFinish upload mode, can give me some help? &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Thank you！&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211635#M10658</guid>
      <dc:creator>蕾雷</dc:creator>
      <dc:date>2019-05-29T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211710#M10663</link>
      <description>&lt;P&gt;When you call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionFinish-com.dropbox.core.v2.files.UploadSessionCursor-com.dropbox.core.v2.files.CommitInfo-" target="_self"&gt;uploadSessionFinish&lt;/A&gt; (to get your &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/UploadSessionFinishUploader.html" target="_self"&gt;UploadSessionFinishUploader&lt;/A&gt;), you supply a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/CommitInfo.html" target="_self"&gt;CommitInfo&lt;/A&gt;&amp;nbsp;instance as the commit parameter. That&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/CommitInfo.html" target="_self"&gt;CommitInfo&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;instance should have a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/CommitInfo.html#mode" target="_self"&gt;mode&lt;/A&gt;&amp;nbsp;(a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/WriteMode.html" target="_self"&gt;WriteMode&lt;/A&gt;) which determines how the file is written. The equivalent to API v1's "parentRev" is to use the &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/WriteMode.html#update-java.lang.String-" target="_self"&gt;update mode&lt;/A&gt;&amp;nbsp;where the value is the rev of the parent.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, that would look something like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WriteMode mode = WriteMode.update(parentRev);
CommitInfo commit = CommitInfo.newBuilder(dropboxFilePath).withMode(mode).build();

client.files().uploadSessionFinish(cursor, commit).uploadAndFinish(in);&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:51:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211710#M10663</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-15T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211836#M10689</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much！&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 02:33:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Overwrite-upload/m-p/211836#M10689</guid>
      <dc:creator>蕾雷</dc:creator>
      <dc:date>2017-03-16T02:33:25Z</dc:date>
    </item>
  </channel>
</rss>

