<?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: Python 3.5 API upload error in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/318394#M353</link>
    <description>&lt;P&gt;I'm glad to hear you have this working now.&lt;/P&gt;
&lt;P&gt;For reference though, note that the files uploaded via the&amp;nbsp;Dropbox API should be available on the&amp;nbsp;Dropbox API/web site as soon as the upload API call returns.&lt;/P&gt;
&lt;P&gt;If you weren't seeing the file immediately on the&amp;nbsp;Dropbox web site or a mobile client, it's possible you just needed to refresh, or if you were looking on a desktop client, you may have &lt;A href="https://www.dropbox.com/help/syncing-uploads/files-update-issues" target="_self"&gt;some general desktop syncing issues&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 18:31:41 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-12-17T18:31:41Z</dc:date>
    <item>
      <title>Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317632#M337</link>
      <description>&lt;P&gt;I'm using a Raspberry Pi 3 B+ with the a Pi Camera to record surveillance images and occasionally upload them to my Dropbox account. The Python script runs until it's time to upload the images to Dropbox and then this error occurs:&lt;/P&gt;&lt;P&gt;[UPLOAD] Wednesday 12 December 2018 07:43:50AM&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "pi_surveillance.py", line 126, in &amp;lt;module&amp;gt;&lt;BR /&gt;client.files_upload(open(t.path, "rb").read(), path)&lt;BR /&gt;File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/base.py", line 2187, in files_upload&lt;BR /&gt;f,&lt;BR /&gt;File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/dropbox.py", line 296, in request&lt;BR /&gt;user_message_locale)&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('88dea4768f5b9c6b5cfc7e05ce25133d', UploadError('path', UploadWriteFailed&lt;/P&gt;&lt;P&gt;I was previously receiving a "malformed token" error, but it has since been replaced with this new error. Can anyone steer me in the right direction. Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;delta1071&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:05:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317632#M337</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2019-05-29T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317653#M338</link>
      <description>&lt;P&gt;It looks like the output you shared here is cut off. There should be more after "&lt;SPAN&gt;UploadWriteFailed". Can you share the rest of that so we can take a look?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:14:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317653#M338</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-13T17:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317692#M340</link>
      <description>&lt;P&gt;Sorry Greg, didn't notice that. Here's the entire error message:&lt;/P&gt;&lt;P&gt;[UPLOAD] Thursday 13 December 2018 03:13:03PM&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "pi_surveillance.py", line 126, in &amp;lt;module&amp;gt;&lt;BR /&gt;client.files_upload(open(t.path, "rb").read(), path)&lt;BR /&gt;File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/base.py", line 2187, in files_upload&lt;BR /&gt;f,&lt;BR /&gt;File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/dropbox.py", line 296, in request&lt;BR /&gt;user_message_locale)&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('b61692b65ac6c9567e93b708e5b09354', UploadError('path', UploadWriteFailed(reason=WriteError('malformed_path', None), upload_session_id='AAAAAAAAAFpRjEudLSydjw')))&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;delta1071&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:15:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317692#M340</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2018-12-13T20:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317693#M341</link>
      <description>&lt;P&gt;Thanks! I see you're getting a 'malformed_path' error. That should indicate that the path you're giving for the upload isn't in a valid format.&amp;nbsp;What value are you supplying as the 'path' parameter (i.e., the second parameter on &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_upload" target="_self"&gt;files_upload&lt;/A&gt;)?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:18:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317693#M341</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-13T20:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317695#M342</link>
      <description>&lt;P&gt;Not sure where to find the files_upload string. The Dropbox upload section of the script is this:&lt;/P&gt;&lt;P&gt;# upload the image to Dropbox and clean up the temporary image&lt;BR /&gt;print("[UPLOAD] {}".format(ts))&lt;BR /&gt;path = "/{base_path}/{timestamp}.jpg".format(&lt;BR /&gt;base_path=conf["dropbox_base_path"], timestamp=ts)&lt;BR /&gt;client.files_upload(open(t.path, "rb").read(), path)&lt;BR /&gt;t.cleanup()&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:42:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317695#M342</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2018-12-13T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317696#M343</link>
      <description>&lt;P&gt;Thanks, I am referring to that 'path' variable you're passing in to files_upload.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the actual value in 'path' after that 'format' call? I.e., "print(path)" just before you call files_upload.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:44:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317696#M343</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-13T20:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317698#M344</link>
      <description>&lt;P&gt;Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My conf.json file contains this Dropbox entry:&lt;/P&gt;&lt;P&gt;"use_dropbox": true,&lt;BR /&gt;"dropbox_access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;"dropbox_base_path": "&lt;A href="https://www.dropbox.com/home/Pi%20Image%20Search" target="_blank"&gt;https://www.dropbox.com/home/Pi%20Image%20Search&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:46:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317698#M344</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2018-12-13T20:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317699#M345</link>
      <description>&lt;P&gt;Thanks! I see you're referencing a&amp;nbsp;Dropbox web site URL in your path. When identifying files by path on the&amp;nbsp;Dropbox API, you should not use Dropbox web site URLs like this.&lt;/P&gt;
&lt;P&gt;You only need to write them relative to "root", so e.g., you might use a value like "/Pi Image Search/123.jpg", to upload a file into a folder named "&lt;SPAN&gt;Pi Image Search", or just "/123.jpg" to upload a file into whatever root your app has.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 20:51:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/317699#M345</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-13T20:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/318100#M349</link>
      <description>&lt;P&gt;The files are uploading now. It seems like it takes a while before the files appear in my Dropbox folder, because even after changing the upload path, the images were showing up in the local folder folder that I was running the script from, but not in the Dropbox folder. But when I checked the Dropbox folder today, the images from Friday morning were there. So, I assume it's working now. Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;delta1071&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 11:51:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/318100#M349</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2018-12-16T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/318394#M353</link>
      <description>&lt;P&gt;I'm glad to hear you have this working now.&lt;/P&gt;
&lt;P&gt;For reference though, note that the files uploaded via the&amp;nbsp;Dropbox API should be available on the&amp;nbsp;Dropbox API/web site as soon as the upload API call returns.&lt;/P&gt;
&lt;P&gt;If you weren't seeing the file immediately on the&amp;nbsp;Dropbox web site or a mobile client, it's possible you just needed to refresh, or if you were looking on a desktop client, you may have &lt;A href="https://www.dropbox.com/help/syncing-uploads/files-update-issues" target="_self"&gt;some general desktop syncing issues&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 18:31:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/318394#M353</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-17T18:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330478#M490</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am receiving a WriteError for a malformed path:&lt;/P&gt;&lt;P&gt;UploadError('path', UploadWriteFailed(reason=WriteError('malformed_path', None), ))&lt;/P&gt;&lt;P&gt;"dropbox_base_path": "/HomeSec",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas where I am going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 23:04:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330478#M490</guid>
      <dc:creator>randysandy209</dc:creator>
      <dc:date>2019-02-23T23:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330692#M493</link>
      <description>&lt;P&gt;This question has already been answered at&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/Discuss-Developer-API/Python-3-5-API-upload-error/m-p/317699#M345.&amp;nbsp;" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/Discuss-Developer-API/Python-3-5-API-upload-error/m-p/317699#M345.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my conf.json file, the dropbox_base_path reads:&amp;nbsp;"Apps/Pi Image Search/Pi/Surveillance", because my Dropbox home account contains a folder named "Apps", which contains a folder named "Pi Image Search", which contains a folder named "Pi", which contains a folder named "Surveillance", which is where my images are uploaded to. Note that there is no leading "/" and that paths that contain folder/filenames with spaces in them must be surrounded by quote marks. Hope this info makes the "dropbox_base_path" variable a little easier to understand.&lt;/P&gt;&lt;P&gt;delta1071&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 12:10:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330692#M493</guid>
      <dc:creator>delta1071</dc:creator>
      <dc:date>2019-02-25T12:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.5 API upload error</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330730#M494</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1003074"&gt;@randysandy209&lt;/a&gt;&amp;nbsp;I see you also posted another thread for this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/Discuss-Developer-API/malformed-path-issue/m-p/330481#M491" target="_self"&gt;https://www.dropboxforum.com/t5/Discuss-Developer-API/malformed-path-issue/m-p/330481#M491&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please feel free to follow up there if you have any remaining questions after the help that&amp;nbsp;delta1071 gave.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:47:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Python-3-5-API-upload-error/m-p/330730#M494</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-25T15:47:29Z</dc:date>
    </item>
  </channel>
</rss>

