Forum Discussion

intouchbiz's avatar
intouchbiz
New member | Level 2
8 years ago

direct access img PHP

It is possible to access an img in dropbox direct using php, without using the download API method?

Or it's only possible to see metadata?

 

//see metadata
$folderMetadata = $dbxClient->getMetadataWithChildren("/");
print_r($folderMetadata ["contents"][0]["path"]);
 
//dowload file (I dont want to download file to the server to open my img)
$f = fopen("test2.txt", "w+b");
$fileMetadata = $dbxClient->getFile("/test.txt", $f);
fclose($f);

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 4 hours ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!