<?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: some questions about write mode in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487448#M24462</link>
    <description>&lt;P&gt;When uploading files to&amp;nbsp;Dropbox via the API, there are a number of different options you can use to control how overwriting, renaming, and conflicts work. For example, with the Java SDK, on the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html" target="_self"&gt;UploadBuilder&lt;/A&gt; class, refer to the documentation for&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html#withAutorename-java.lang.Boolean-" target="_self"&gt;UploadBuilder.withAutorename&lt;/A&gt;,&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&lt;/A&gt;, and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html#withMode-com.dropbox.core.v2.files.WriteMode-" target="_self"&gt;UploadBuilder.withMode&lt;/A&gt;. Also, be sure to read the documentation for&amp;nbsp;&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;WriteMode&lt;/A&gt; itself, as it has some more information on how the different write modes work. If something isn't working as documented, please share the steps and code to reproduce the issue so we can look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding logging out, there are actually a few different things this may refer to. I&amp;nbsp;recommend reading &lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/92" target="_self"&gt;this post&lt;/A&gt; for information on the different options. The&amp;nbsp;Dropbox API doesn't offer a way to be notified when a user disconnects your app, but you can perform whatever calls you need from your app's own code of course.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 15:46:38 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-01-15T15:46:38Z</dc:date>
    <item>
      <title>some questions about write mode</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487311#M24460</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; It seems that dropbox handle files when there is a conflict like this: If&amp;nbsp;&lt;SPAN&gt;one file in dropbox is being updated by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;multiple devices, some conflicting copies will be created, and users should merge these confilting files manully. Whether&amp;nbsp;&amp;nbsp;I set write mode to add, overwrite or update has no influence about this. The conficting copy will be created anyway.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Now,&amp;nbsp;I want to integrate dropbox into my own app by&amp;nbsp;Java SDK for API v2. It seems the way dropbox app take&amp;nbsp;a little inconvenient. So I wonder if there&amp;nbsp;any other API for developers to handle this case?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Another question is, how should I log out a dropbox account by API? And can I have a callback after successfully logging out to, for example, notify my own server?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:10:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487311#M24460</guid>
      <dc:creator>petal</dc:creator>
      <dc:date>2021-01-15T18:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: some questions about write mode</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487448#M24462</link>
      <description>&lt;P&gt;When uploading files to&amp;nbsp;Dropbox via the API, there are a number of different options you can use to control how overwriting, renaming, and conflicts work. For example, with the Java SDK, on the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html" target="_self"&gt;UploadBuilder&lt;/A&gt; class, refer to the documentation for&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html#withAutorename-java.lang.Boolean-" target="_self"&gt;UploadBuilder.withAutorename&lt;/A&gt;,&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&lt;/A&gt;, and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/UploadBuilder.html#withMode-com.dropbox.core.v2.files.WriteMode-" target="_self"&gt;UploadBuilder.withMode&lt;/A&gt;. Also, be sure to read the documentation for&amp;nbsp;&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;WriteMode&lt;/A&gt; itself, as it has some more information on how the different write modes work. If something isn't working as documented, please share the steps and code to reproduce the issue so we can look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding logging out, there are actually a few different things this may refer to. I&amp;nbsp;recommend reading &lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/92" target="_self"&gt;this post&lt;/A&gt; for information on the different options. The&amp;nbsp;Dropbox API doesn't offer a way to be notified when a user disconnects your app, but you can perform whatever calls you need from your app's own code of course.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 15:46:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487448#M24462</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-15T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: some questions about write mode</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487771#M24471</link>
      <description>&lt;P&gt;Thanks, I have read the WriteMode link you give, and notice the description in the document.&lt;/P&gt;&lt;P&gt;The description about "ADD" is:&amp;nbsp;&lt;SPAN&gt;Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And description about "OVERWRITE" is:&amp;nbsp;&lt;SPAN&gt;Always overwrite the existing file. The autorename strategy is the same as it is for&amp;nbsp;ADD&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I still don't konw the difference between these two options. Since both option will create a new file like&amp;nbsp;"document (2).txt", how should I understand the words "Always overwrite the existing file"? If I set write mode to overwrite, will every update from multiple devices be added to the end of "document.txt", and at the same time create&amp;nbsp;"document (2).txt" for every update. And if in add mode, app will only create&amp;nbsp;"document (2).txt", and don't add update to "document.txt" ? Did I understand in the right way? I don't have enough devices to try this, so I sincerely hope you can help me figure this out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 15:45:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/487771#M24471</guid>
      <dc:creator>petal</dc:creator>
      <dc:date>2021-01-17T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: some questions about write mode</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/488096#M24475</link>
      <description>&lt;P&gt;If you use "overwrite", an existing file will be replaced by the new data. If you use "add", an existing file will not be replaced by the new data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't actually need multiple devices to test this. You can just run multiple API calls from one place. I&amp;nbsp;recommend using &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload" target="_self"&gt;the API v2 Explorer&lt;/A&gt; to test this out. (You can even open it in multiple windows/tabs if you want.)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 19:06:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/488096#M24475</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-18T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: some questions about write mode</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/488195#M24477</link>
      <description>&lt;P&gt;Thanks a lot. I will try&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:09:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/some-questions-about-write-mode/m-p/488195#M24477</guid>
      <dc:creator>petal</dc:creator>
      <dc:date>2021-01-19T07:09:18Z</dc:date>
    </item>
  </channel>
</rss>

