stealthrt Posted March 29, 2014 Share Posted March 29, 2014 (edited) 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 March 29, 2014 by stealthrt Quote Link to comment https://forums.phpfreaks.com/topic/287386-dropbox-api-using-php-via-dropphp-download-error/ Share on other sites More sharing options...
Psycho Posted March 30, 2014 Share Posted March 30, 2014 Did you consider asking the author of that API? Quote Link to comment https://forums.phpfreaks.com/topic/287386-dropbox-api-using-php-via-dropphp-download-error/#findComment-1474405 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.