Jump to content

Recommended Posts

I am currently using the sample.php page provided with the code here.


Now it does create the access token just fine.


It also shows my account info as it should be.


It finds all the file directory's in the "files array" part.


It can upload a test image just fine to dropbox.


It can get all the meta data for current images in my dropbox folder.


However, I can not seem to download the images from dropbox!


 


The error i get once it gets to this code:



echo "\r\n\r\n<b>Downloading $file->path:</b>\r\n";
print_r($dropbox->DownloadFile($file, $test_file));

Is this below:



( ! ) Fatal error: Uncaught exception 'DropboxException' with message ' in C:\wamp\www\test\DropboxClient.php on line 634

( ! ) DropboxException: Could not retrieve meta data from header data: Array
(
[0] => HTTP/1.1 404 Not Found
[1] => Server: nginx
[2] => Date: Sat, 29 Mar 2014 18:07:54 GMT
[3] => Content-Type: application/json
[4] => Transfer-Encoding: chunked
[5] => Connection: keep-alive
[6] =>
)
in C:\wamp\www\test\DropboxClient.php on line 634

Call Stack

# Time Memory Function Location

1 0.0016 156816 {main}( ) ..\sample.php:0

2 1.0901 343472 DropboxClient->DownloadFile( ) ..\sample.php:80

3 1.4278 344872 DropboxClient::getMetaFromHeaders( ) ..\DropboxClient.php:223 

I'm not sure where i am needing to check out (either in the code or on the wamp side) in order to correct this issue above?


Any help would be great!


Edited by stealthrt
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.