<?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: Download a file with the API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/272523#M16182</link>
    <description>&lt;P&gt;Hello Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar problem and I thought you might be able to help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to download a file from my dropbox folder using curl in mac os x terminal. For this I am using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-download&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is a .txt file I can get the content of the file in my terminal window. If it is an image I get something which does not make sense but I guess it is the content of the image. The question is, how can I actually save the .txt or .jpg file to my local drive? Does this command not auto-save the file to your default downloads folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similary when I try to use download_zip for a folder nothing&amp;nbsp;is downloaded but onyl some text that does not make much sense appears&amp;nbsp;(although I get no error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, when I use the upload feature, I just see the actual file added to my folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Apr 2018 00:24:14 GMT</pubDate>
    <dc:creator>mikezelton</dc:creator>
    <dc:date>2018-04-15T00:24:14Z</dc:date>
    <item>
      <title>Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176637#M7056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm a developer using the dropbox API to make a web integration.&lt;/P&gt;
&lt;P&gt;I need&amp;nbsp;to download a file using the api, but the options that I've found are not completely satisfactory for me:&lt;/P&gt;
&lt;P&gt;I'm currently using the method&amp;nbsp;&lt;A class="scroll-nav__link" href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" rel="nofollow noreferrer" target="_blank"&gt;/get_temporary_link&lt;/A&gt;&amp;nbsp;to get a link&amp;nbsp;to download the file. But the&amp;nbsp;"downloaded" file has some issues:&lt;/P&gt;
&lt;P&gt;- The file name is not the expected file name (is just a big random name)&lt;BR /&gt;- If the browser can manage the extension --&amp;gt; The browser shows the file instead of downloading it (images, txts, html, ...)&lt;BR /&gt;-&amp;nbsp;I just noticed that the following header is missing in the response from the temporary link generated:&lt;/P&gt;
&lt;P&gt;Content-Disposition: attachment; filename="fileName.jpg"&lt;/P&gt;
&lt;P&gt;I've already been investigating other options like /&lt;A class="scroll-nav__link" href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link" rel="nofollow noreferrer" target="_blank"&gt;create_shared_link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But I can't set the expires property because I'm a regular user (only allowed for business users), and not setting this expires time will be a security issue for my application.&lt;/P&gt;
&lt;P&gt;Is there an alternative to do what I expect in the current API? (just be able to download allways a file)&lt;/P&gt;
&lt;P&gt;If not, is the missing header from temporary link a real bug? Or is&amp;nbsp;something done on purpose?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Jaume&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176637#M7056</guid>
      <dc:creator>Jaume M.</dc:creator>
      <dc:date>2019-05-29T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176638#M7057</link>
      <description>&lt;P&gt;Hi Jaume, the typical way to download a file using the API is the /files/download endpoint:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-download&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That returns the file content directly, so you can do whatever you need with it. (I.e., you can enforce access control ahead of time as necessary, save it to a local file at your desired location, or for a web app, serve it back to the user, etc..)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that suit your use case? Let me know if not and we'll consider this a feature request for a Content-Disposition header on those temporary links (or some other solution).&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2016 21:52:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176638#M7057</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-16T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176639#M7058</link>
      <description>&lt;P&gt;Thanks for your answer Gregory,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;also have taken into consideration this method, but I&amp;nbsp;want to provide directly a link to the end user.&lt;/P&gt;
&lt;P&gt;I'm using the dropbox API from a server side. If I use the /files/download method, I will need two steps to download a file (1. from Dropbox to my WebServer; 2. From my webserver to the endUser machine). I want to avoid this 2 steps, and having a direct link is a good option for&amp;nbsp;it.&lt;/P&gt;
&lt;P&gt;/get_temporary_link teorically&amp;nbsp;was going to fit with my requirements. but It doesn't because of this little issue.&lt;/P&gt;
&lt;P&gt;If you consider to include the Content-Disposition header fix or other solution, please, let me know and I would be very grateful&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Jaume&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:18:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176639#M7058</guid>
      <dc:creator>Jaume M.</dc:creator>
      <dc:date>2016-07-18T14:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176640#M7059</link>
      <description>&lt;P&gt;Thanks for following up. I think a Content-Disposition header on these links would be a good solution for this. I'm sending this along as a feature request.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 02:27:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176640#M7059</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-20T02:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176641#M7060</link>
      <description>&lt;P&gt;Thanks Gregory,&lt;/P&gt;
&lt;P&gt;Is there any public place where I can follow this feature request status?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Jaume&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:10:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176641#M7060</guid>
      <dc:creator>Jaume M.</dc:creator>
      <dc:date>2016-07-20T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176642#M7061</link>
      <description>&lt;P&gt;We don't have a public feature request tracker unfortunately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, by some coincidence, the team did happen to already be working on this feature, and it just went live. Please try the temporary links again and you should find the Content-Disposition header set.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 21:34:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176642#M7061</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-20T21:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176643#M7062</link>
      <description>&lt;P&gt;It worked for me Gregory,&lt;/P&gt;
&lt;P&gt;Thanks so much for your support and your quick fix &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Jaume&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 21:48:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/176643#M7062</guid>
      <dc:creator>Jaume M.</dc:creator>
      <dc:date>2016-07-20T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/272523#M16182</link>
      <description>&lt;P&gt;Hello Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar problem and I thought you might be able to help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to download a file from my dropbox folder using curl in mac os x terminal. For this I am using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-download&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is a .txt file I can get the content of the file in my terminal window. If it is an image I get something which does not make sense but I guess it is the content of the image. The question is, how can I actually save the .txt or .jpg file to my local drive? Does this command not auto-save the file to your default downloads folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similary when I try to use download_zip for a folder nothing&amp;nbsp;is downloaded but onyl some text that does not make much sense appears&amp;nbsp;(although I get no error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, when I use the upload feature, I just see the actual file added to my folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 00:24:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/272523#M16182</guid>
      <dc:creator>mikezelton</dc:creator>
      <dc:date>2018-04-15T00:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/272653#M16193</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/660957"&gt;@mikezelton&lt;/a&gt;&amp;nbsp;The&amp;nbsp;Dropbox API download endpoints, e.g., /2/files/download and /2/files/download_zip, return the requested data in the response body. What you/your HTTP client do with that response is up to you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, curl just shows the data in stdout. You may want to use curl's `--output` option to specify a location to save it to instead. I&amp;nbsp;recommend referring to the curl documentation for more information on using it and the other options that curl offers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:54:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-with-the-API/m-p/272653#M16193</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-16T15:54:36Z</dc:date>
    </item>
  </channel>
</rss>

