<?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 Error when uploading to folder - Python client in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361745#M20589</link>
    <description>&lt;P&gt;Hello. I am trying to upload a file using this Python code:&lt;/P&gt;
&lt;PRE&gt;with open("{} - my-file-name.xlsx".format(
        datetime.now().strftime('%Y%m%d')), "rb") as f:
    dbx.files_upload(
        f.read(),
        "/path/to/folder{} - my-file-name.xlsx".format(
            datetime.now().strftime('%Y%m%d')))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And I am getting this error:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Upload to Dropbox error: ApiError('*******************', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), upload_session_id='*******************')))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone help pls?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 10:34:44 GMT</pubDate>
    <dc:creator>vherasme</dc:creator>
    <dc:date>2019-09-10T10:34:44Z</dc:date>
    <item>
      <title>Error when uploading to folder - Python client</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361745#M20589</link>
      <description>&lt;P&gt;Hello. I am trying to upload a file using this Python code:&lt;/P&gt;
&lt;PRE&gt;with open("{} - my-file-name.xlsx".format(
        datetime.now().strftime('%Y%m%d')), "rb") as f:
    dbx.files_upload(
        f.read(),
        "/path/to/folder{} - my-file-name.xlsx".format(
            datetime.now().strftime('%Y%m%d')))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And I am getting this error:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Upload to Dropbox error: ApiError('*******************', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), upload_session_id='*******************')))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone help pls?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:34:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361745#M20589</guid>
      <dc:creator>vherasme</dc:creator>
      <dc:date>2019-09-10T10:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading to folder - Python client</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361764#M20591</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1192184"&gt;@vherasme&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Seems the file already exists. If I have to bet, You probably make erroneous upload instead update. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives some direction.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 15:33:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361764#M20591</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-25T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading to folder - Python client</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361932#M20593</link>
      <description>&lt;P&gt;That's correct, that 'path/conflict/file' indicates the upload failed&amp;nbsp;because there's already a file at the specified path. You can find &lt;A href="https://www.dropboxforum.com/WriteConflictError" target="_self"&gt;this&amp;nbsp;WriteConflictError error in the documentation here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can control the conflict behavior via the `mode` and `autorename` parameters for &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_upload" target="_self"&gt;the `files_upload` method&lt;/A&gt;. The documentation there has more information about the different options and what they do.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 16:52:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-to-folder-Python-client/m-p/361932#M20593</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-26T16:52:39Z</dc:date>
    </item>
  </channel>
</rss>

