<?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 Java Api upload same file rename not working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-Api-upload-same-file-rename-not-working/m-p/371581#M20953</link>
    <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;from 12.30 on 10/15/2019 the Dropbox Api java does not force the renaming of the existing files.&lt;BR /&gt;Load the file xyz.pdf and dropbox, correctly, assigns me the id &amp;lt;id: xxx&amp;gt; but when I re-upload the same file xyz.pdf the rename does not work:&lt;BR /&gt;I expected the file to be renamed to xyz (1).pdf and the id returned &amp;lt;id: zzz&amp;gt;&lt;/P&gt;
&lt;P&gt;I use dbxClient V2&lt;/P&gt;
&lt;P&gt;below part of the code with which I impose the rename&lt;BR /&gt;UploadBuilder fileUploader = dropboxClient.files (). UploadBuilder (pathFileName);&lt;BR /&gt;fileUploader.withMode (WriteMode.ADD) .withMute (Boolean.TRUE) .withAutorename (Boolean.TRUE);&lt;/P&gt;
&lt;P&gt;is there any news about it&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 13:49:22 GMT</pubDate>
    <dc:creator>developersSave</dc:creator>
    <dc:date>2019-10-16T13:49:22Z</dc:date>
    <item>
      <title>Java Api upload same file rename not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-Api-upload-same-file-rename-not-working/m-p/371581#M20953</link>
      <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;from 12.30 on 10/15/2019 the Dropbox Api java does not force the renaming of the existing files.&lt;BR /&gt;Load the file xyz.pdf and dropbox, correctly, assigns me the id &amp;lt;id: xxx&amp;gt; but when I re-upload the same file xyz.pdf the rename does not work:&lt;BR /&gt;I expected the file to be renamed to xyz (1).pdf and the id returned &amp;lt;id: zzz&amp;gt;&lt;/P&gt;
&lt;P&gt;I use dbxClient V2&lt;/P&gt;
&lt;P&gt;below part of the code with which I impose the rename&lt;BR /&gt;UploadBuilder fileUploader = dropboxClient.files (). UploadBuilder (pathFileName);&lt;BR /&gt;fileUploader.withMode (WriteMode.ADD) .withMute (Boolean.TRUE) .withAutorename (Boolean.TRUE);&lt;/P&gt;
&lt;P&gt;is there any news about it&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:49:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-Api-upload-same-file-rename-not-working/m-p/371581#M20953</guid>
      <dc:creator>developersSave</dc:creator>
      <dc:date>2019-10-16T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Java Api upload same file rename not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-Api-upload-same-file-rename-not-working/m-p/376594#M21110</link>
      <description>&lt;P&gt;Apologies for the very late reply. Our forum software did not notify me of this post unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, in this case were you uploading the same exact file content? Even with &lt;CODE&gt;WriteMode.ADD&lt;/CODE&gt;, if you just upload the same exact file content that is already uploaded at that path, it won't add another copy.&amp;nbsp;You can find more information in &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/WriteMode.html" target="_self"&gt;the&amp;nbsp;WriteMode documentation&lt;/A&gt;. Here's the relevant part in this case:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If the target path refers to a file with identical contents, nothing gets written; no conflict.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Edit: For reference, you can force a conflict when the contents are identical using&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html#withStrictConflict-java.lang.Boolean-" target="_self"&gt;UploadBuilder.withStrictConflict(true)&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 18:54:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-Api-upload-same-file-rename-not-working/m-p/376594#M21110</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-07-23T18:54:06Z</dc:date>
    </item>
  </channel>
</rss>

