<?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: To upload a file I use &amp;quot;client.put_file(filename, f)&amp;quot; what should I use to download? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237434#M13115</link>
    <description>*moves to API forum*</description>
    <pubDate>Thu, 17 Aug 2017 18:50:10 GMT</pubDate>
    <dc:creator>Mark</dc:creator>
    <dc:date>2017-08-17T18:50:10Z</dc:date>
    <item>
      <title>To upload a file I use "client.put_file(filename, f)" what should I use to download?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237432#M13114</link>
      <description>&lt;P&gt;Hi, I'm uploading files to Dropbox from an Arduino Yun using the Python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the&amp;nbsp;code (working fine) I use to upload&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# -*- coding: utf-8 -*-
import dropbox
import datetime
suffix = datetime.datetime.now().strftime("%Y%m%d%H%M")
filename = suffix + ".jpg"
client = dropbox.client.DropboxClient('my token here')
f = open('/mnt/sda1/pic.jpg', 'rb')
response = client.put_file(filename, f)
print "uploaded:", response
&lt;/PRE&gt;
&lt;P&gt;can you please show me the equivalent to download a file named "myfile.txt" an store it with the same name on the Yun's directory "/mnt/sda1/"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237432#M13114</guid>
      <dc:creator>simon_schva</dc:creator>
      <dc:date>2019-05-29T09:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: To upload a file I use "client.put_file(filename, f)" what should I use to download?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237434#M13115</link>
      <description>*moves to API forum*</description>
      <pubDate>Thu, 17 Aug 2017 18:50:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237434#M13115</guid>
      <dc:creator>Mark</dc:creator>
      <dc:date>2017-08-17T18:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: To upload a file I use "client.put_file(filename, f)" what should I use to download?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237441#M13116</link>
      <description>&lt;P&gt;The 'dropbox.client' functionality you're using is actually for the &lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_self"&gt;deprecated API v1&lt;/A&gt;. You should update to &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_self"&gt;the latest version and use it as documented here&lt;/A&gt;, which uses API v2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To upload a file, you would use &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;. To download a file you would use &lt;A href="http://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_download" target="_self"&gt;files_download&lt;/A&gt;&amp;nbsp;or &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_download_to_file" target="_self"&gt;files_download_to_file&lt;/A&gt;.&amp;nbsp;There's an example that showing &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/example/back-up-and-restore/backup-and-restore-example.py#L26" target="_self"&gt;uploading&lt;/A&gt; and &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/example/back-up-and-restore/backup-and-restore-example.py#L55" target="_self"&gt;downloading&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 19:42:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/To-upload-a-file-I-use-quot-client-put-file-filename-f-quot-what/m-p/237441#M13116</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-17T19:42:00Z</dc:date>
    </item>
  </channel>
</rss>

