<?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: php  file download in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221475#M11748</link>
    <description>[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/44000071/dropbox-php-file-download" target="_blank"&gt;https://stackoverflow.com/questions/44000071/dropbox-php-file-download&lt;/A&gt; ]&lt;BR /&gt;&lt;BR /&gt;What error/output are you getting?</description>
    <pubDate>Tue, 16 May 2017 17:38:20 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-05-16T17:38:20Z</dc:date>
    <item>
      <title>php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221391#M11744</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I am trying to download a file with PHP, but I am having trouble with this part of the code. I need an example in this regard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$url = "https://content.dropboxapi.com/2/files/download";
$sAccessToken = "*************************";
$curl = curl_init($url);
$aPostData = array('path' =&amp;gt; '/test.rar');
$aOptions = array(
CURLOPT_POST =&amp;gt; true,
CURLOPT_HTTPHEADER =&amp;gt; array('Content-Type:',
'Authorization: Bearer ' . $sAccessToken,
'Dropbox-API-Arg: ' . json_encode($aPostData)
) ,
CURLOPT_RETURNTRANSFER =&amp;gt; true
);
curl_setopt_array($curl, $aOptions);
$result = curl_exec($curl);
echo $result;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221391#M11744</guid>
      <dc:creator>emre</dc:creator>
      <dc:date>2019-05-29T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221475#M11748</link>
      <description>[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/44000071/dropbox-php-file-download" target="_blank"&gt;https://stackoverflow.com/questions/44000071/dropbox-php-file-download&lt;/A&gt; ]&lt;BR /&gt;&lt;BR /&gt;What error/output are you getting?</description>
      <pubDate>Tue, 16 May 2017 17:38:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221475#M11748</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-16T17:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221491#M11753</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="xzxzxzxz.png" style="width: 751px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/460i7A0F7BAA7EB7BBBB/image-dimensions/751x371?v=v2" width="751" height="371" role="button" title="xzxzxzxz.png" alt="xzxzxzxz.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-ta tw-text-medium" dir="ltr" data-placeholder="Çeviri" data-fulltext=""&gt;&lt;SPAN&gt;Attempting to open the file in the browser&lt;BR /&gt;&lt;BR /&gt;How to access direct download link ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 19:43:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221491#M11753</guid>
      <dc:creator>emre</dc:creator>
      <dc:date>2017-05-16T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221498#M11754</link>
      <description>Is that the output you're getting from the PHP code you shared earlier? If so, that is likely just the raw file data, which the browser is trying to display as text. The /2/files/download endpoint does return the raw file data, so you can do with it whatever you need to. E.g., save it to a file, etc.&lt;BR /&gt;&lt;BR /&gt;If you want a link to the file instead, you can use /2/files/get_temporary_link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link&lt;/A&gt;</description>
      <pubDate>Tue, 16 May 2017 20:40:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221498#M11754</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-16T20:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221504#M11756</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-ta tw-text-medium" dir="ltr" data-placeholder="Çeviri" data-fulltext=""&gt;&lt;SPAN&gt;Thank you so much&lt;BR /&gt;That's exactly what I'm looking for :)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 21:13:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221504#M11756</guid>
      <dc:creator>emre</dc:creator>
      <dc:date>2017-05-16T21:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221834#M11792</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;&lt;FONT&gt;Merhaba Greg, ne yazık ki (# files-get temporary link) işe yaramadı&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I want to make a download button like picture&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adsız.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/462i0BB0A141EDC928CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Adsız.png" alt="Adsız.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:43:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221834#M11792</guid>
      <dc:creator>emre</dc:creator>
      <dc:date>2017-05-18T10:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: php  file download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221916#M11804</link>
      <description>The screenshot you shared shows you trying the /2/files/download endpoint. You can use that to directly return files contents if you'd like.&lt;BR /&gt;&lt;BR /&gt;We discussed using /2/files/get_temporary_link though. That would give you a direct URL for the file contents. This is working correctly as far as I can tell.&lt;BR /&gt;&lt;BR /&gt;In either case, how you use that response is up to you, and exactly how you implement it will depend on the specifics of your app.</description>
      <pubDate>Thu, 18 May 2017 18:27:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/php-file-download/m-p/221916#M11804</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-18T18:27:50Z</dc:date>
    </item>
  </channel>
</rss>

