<?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 Error with DownloadFile function while using dropPHP in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255292#M14767</link>
    <description>&lt;P&gt;I tried executing my php code to download a file from dropbox using dropboxclient.php which shows the below error. &amp;nbsp;The given Download file function works perfectly fine with windows but not with macbook. Can anyone help me in solving the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Myphpcode For download function:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isset&lt;/SPAN&gt;&lt;SPAN&gt;($_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $test_file = $_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $dropbox-&amp;gt;DownloadFile( &lt;/SPAN&gt;&lt;SPAN&gt;'/'&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;$_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;], $test_file );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?php&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; $files= $dropbox-&amp;gt;GetFiles(&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;foreach&lt;/SPAN&gt;&lt;SPAN&gt; ($files &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; $value) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href=&lt;/SPAN&gt;&lt;SPAN&gt;"album.php?disp=&amp;lt;?= basename($value-&amp;gt;path) ?&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;?= basename($value-&amp;gt;path)&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?php&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;:  Uncaught DropboxException: Could not create file image2.jpeg ! in /Applications/XAMPP/xamppfiles/htdocs/project8/DropboxClient.php:278
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/project8/album.php(109): DropboxClient-&amp;gt;DownloadFile('/image2.jpeg', 'image2.jpeg')
#1 {main}
  thrown in &lt;STRONG&gt;/Applications/XAMPP/xamppfiles/htdocs/project8/DropboxClient.php&lt;/STRONG&gt; on line &lt;STRONG&gt;278&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:16:53 GMT</pubDate>
    <dc:creator>adarsh007</dc:creator>
    <dc:date>2019-05-29T09:16:53Z</dc:date>
    <item>
      <title>Error with DownloadFile function while using dropPHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255292#M14767</link>
      <description>&lt;P&gt;I tried executing my php code to download a file from dropbox using dropboxclient.php which shows the below error. &amp;nbsp;The given Download file function works perfectly fine with windows but not with macbook. Can anyone help me in solving the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Myphpcode For download function:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isset&lt;/SPAN&gt;&lt;SPAN&gt;($_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $test_file = $_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $dropbox-&amp;gt;DownloadFile( &lt;/SPAN&gt;&lt;SPAN&gt;'/'&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;$_GET[&lt;/SPAN&gt;&lt;SPAN&gt;'disp'&lt;/SPAN&gt;&lt;SPAN&gt;], $test_file );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?php&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; $files= $dropbox-&amp;gt;GetFiles(&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;foreach&lt;/SPAN&gt;&lt;SPAN&gt; ($files &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; $value) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href=&lt;/SPAN&gt;&lt;SPAN&gt;"album.php?disp=&amp;lt;?= basename($value-&amp;gt;path) ?&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;?= basename($value-&amp;gt;path)&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?php&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;:  Uncaught DropboxException: Could not create file image2.jpeg ! in /Applications/XAMPP/xamppfiles/htdocs/project8/DropboxClient.php:278
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/project8/album.php(109): DropboxClient-&amp;gt;DownloadFile('/image2.jpeg', 'image2.jpeg')
#1 {main}
  thrown in &lt;STRONG&gt;/Applications/XAMPP/xamppfiles/htdocs/project8/DropboxClient.php&lt;/STRONG&gt; on line &lt;STRONG&gt;278&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255292#M14767</guid>
      <dc:creator>adarsh007</dc:creator>
      <dc:date>2019-05-29T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DownloadFile function while using dropPHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255294#M14768</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/f4bsch/DropPHP" target="_self"&gt;That library&lt;/A&gt; is made by a third party, so we can't provide support for it, and the error here doesn't seem to be coming from the Dropbox API itself. You may want to open &lt;A href="https://github.com/f4bsch/DropPHP/issues" target="_self"&gt;an issue for the library&lt;/A&gt;&amp;nbsp;instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference though, that error seems to come from &lt;A href="https://github.com/f4bsch/DropPHP/blob/470540daddb8a469aa57cde0e74697ace609a30a/DropboxClient.php#L278" target="_self"&gt;this line&lt;/A&gt;. That indicates an issue openining the local destination path. I&amp;nbsp;recommend checking that you have the correct path, and permissions to that path.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 22:18:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255294#M14768</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-04T22:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DownloadFile function while using dropPHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255297#M14769</link>
      <description>&lt;P&gt;Well Thanks a lot Mr.Greg. I have even tried changing the permission for the folder and execute it.. It still gives the same error. COming to the destination path i suppose it takes the home directory automatically when i give the file name coz it worked in Windows like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that's not the case could you plese suggest how a destination path needs to be given for that DownloadFile() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 22:47:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255297#M14769</guid>
      <dc:creator>adarsh007</dc:creator>
      <dc:date>2017-12-04T22:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error with DownloadFile function while using dropPHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255384#M14777</link>
      <description>Unfortunately, as that's related to using the local filesystem, via a third party library, and not the Dropbox API itself, I'm afraid I can't offer insight there.</description>
      <pubDate>Tue, 05 Dec 2017 16:25:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-with-DownloadFile-function-while-using-dropPHP/m-p/255384#M14777</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-05T16:25:54Z</dc:date>
    </item>
  </channel>
</rss>

