<?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: Dropbox API with PHP get content of file in Dropbox in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-with-PHP-get-content-of-file-in-Dropbox/m-p/488098#M1699</link>
    <description>&lt;P&gt;When using the&amp;nbsp;Dropbox API to download a file, that is, via&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;, if the call is successful the file data is returned in the response body. Exactly what the client does with that is up to the client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in this case, it sounds like you're using a third party library to perform the download and that library saves the data from the response body to a local file, but you actually want it in memory as a string. We can't provide support for third party libraries like this, as they're not made by Dropbox. You may want to refer to the documentation for that library to see if it offers an option that does what you want. Otherwise, you may need to instead read the file off the local filesystem.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 19:11:03 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-01-18T19:11:03Z</dc:date>
    <item>
      <title>Dropbox API with PHP get content of file in Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-with-PHP-get-content-of-file-in-Dropbox/m-p/487885#M1698</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a WebApp that stores a backup in the cloud of the user. I use the third party libary: &lt;A href="http://fabi.me/en/php-projects/dropphp-dropbox-api-client/" target="_blank" rel="noopener"&gt;http://fabi.me/en/php-projects/dropphp-dropbox-api-client/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://protigwelders.com/" target="_self"&gt;I think&lt;/A&gt; Login works. But im stuck at the point where I can download it.&lt;/P&gt;&lt;P&gt;The following code downloads the file on the cloud and writes it to a file.&lt;/P&gt;&lt;P&gt;$dropbox-&amp;gt;DownloadFile( $file, $test_file )&lt;BR /&gt;But I need the content of the file only in a string and not as file. The data shouldn't be stored.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 07:11:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-with-PHP-get-content-of-file-in-Dropbox/m-p/487885#M1698</guid>
      <dc:creator>annahernandez99</dc:creator>
      <dc:date>2021-01-20T07:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API with PHP get content of file in Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-with-PHP-get-content-of-file-in-Dropbox/m-p/488098#M1699</link>
      <description>&lt;P&gt;When using the&amp;nbsp;Dropbox API to download a file, that is, via&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;, if the call is successful the file data is returned in the response body. Exactly what the client does with that is up to the client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in this case, it sounds like you're using a third party library to perform the download and that library saves the data from the response body to a local file, but you actually want it in memory as a string. We can't provide support for third party libraries like this, as they're not made by Dropbox. You may want to refer to the documentation for that library to see if it offers an option that does what you want. Otherwise, you may need to instead read the file off the local filesystem.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 19:11:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-API-with-PHP-get-content-of-file-in-Dropbox/m-p/488098#M1699</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-18T19:11:03Z</dc:date>
    </item>
  </channel>
</rss>

