<?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 File lock in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694213#M31072</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We Created an Dropbox App that is installed in my clients dropbox.&lt;/P&gt;
&lt;P&gt;They are assigned to my app.&lt;/P&gt;
&lt;P&gt;this app is creating a csv file inside some directory that is automatically created.&lt;/P&gt;
&lt;P&gt;This folder in shared amond other users with edit permisions.&lt;/P&gt;
&lt;P&gt;My App needs to write to this csv file, but I get the following error on my server:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ApiError('f9ee5a51cff24e56b5bcfe2db75e39fb', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know what is the conflict? why it happens?&lt;/P&gt;
&lt;P&gt;The csv file is not locked (I don't see the lock icon) but still I see that the options for 'delete' &amp;amp; rename are greyed out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Aviel&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 00:52:31 GMT</pubDate>
    <dc:creator>Avielos</dc:creator>
    <dc:date>2023-06-29T00:52:31Z</dc:date>
    <item>
      <title>File lock</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694213#M31072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We Created an Dropbox App that is installed in my clients dropbox.&lt;/P&gt;
&lt;P&gt;They are assigned to my app.&lt;/P&gt;
&lt;P&gt;this app is creating a csv file inside some directory that is automatically created.&lt;/P&gt;
&lt;P&gt;This folder in shared amond other users with edit permisions.&lt;/P&gt;
&lt;P&gt;My App needs to write to this csv file, but I get the following error on my server:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ApiError('f9ee5a51cff24e56b5bcfe2db75e39fb', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know what is the conflict? why it happens?&lt;/P&gt;
&lt;P&gt;The csv file is not locked (I don't see the lock icon) but still I see that the options for 'delete' &amp;amp; rename are greyed out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Aviel&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 00:52:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694213#M31072</guid>
      <dc:creator>Avielos</dc:creator>
      <dc:date>2023-06-29T00:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: File lock</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694227#M31073</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1717899"&gt;@Avielos&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The error, you received, is clear enough (oh.. can be more clear of course, but...). Different scenarios may lead to such result. The most typical one is when upload mode is update, but file revision doesn't match. If so, trace where you have lost the actual revision. Other way, leading to the same result, may be usage meaningless of strictness. If set, even missing file is conflict when existing file is expected (normally the new file is wrote when there is no other). Check your code for a scenario like described or something similar.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 14:32:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694227#M31073</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-06-25T14:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: File lock</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694439#M31074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you mean exactly '&lt;SPAN&gt;usage meaningless of strictness'? where do I configure the strictness?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, our upload mode is overwrite.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aviel.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 14:54:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694439#M31074</guid>
      <dc:creator>Avielos1</dc:creator>
      <dc:date>2023-06-26T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: File lock</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694451#M31075</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1718367"&gt;@Avielos1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;what do you mean exactly '&lt;SPAN&gt;usage meaningless of strictness'? where do I configure the strictness?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There is a &lt;EM&gt;strictConflict&lt;/EM&gt; parameter in &lt;A title="Create a new file with the contents provided in the request" href="https://github.com/dropbox/SwiftyDropbox/blob/master/Source/SwiftyDropbox/Shared/Generated/FilesRoutes.swift#L1240" target="_blank" rel="noopener"&gt;upload&lt;/A&gt;, for instance. Similar for the other upload methods. Default parameter values are fine usually; if needed to change some parameter, just take care.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:43:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694451#M31075</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-06-26T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: File lock</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694452#M31076</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1717899"&gt;@Avielos&lt;/a&gt; When uploading a file, a 'path/conflict/file' error like this indicates that the upload failed because there was already a file at the specified path. That can occur whether or not the file is "locked". You can find more information about this particular error, as well as the others, in the documentation. You can find that &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;here for the /2/files/upload endpoint itself&lt;/A&gt;, which is what the SDKs use as well. (It looks like you're using the Python SDK, so you can also find &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_upload" target="_blank"&gt;the Python SDK documentation here&lt;/A&gt;.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Здравко mentioned, you can control the conflict behaviors using the parameters, such as mode, autorename, and strict_conflict. Refer to the documentation linked above for information on those.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:55:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-lock/m-p/694452#M31076</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-06-26T15:55:06Z</dc:date>
    </item>
  </channel>
</rss>

