Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
knalpiap
9 years agoHelpful | Level 5
PHP - Show thumbnail
Hi peepz, I'm running a PHP project for which I read a specific Dropbox directoty using 'list_folder'. Five files (JPG), matching certain criteria are selected from all returned files. So far, so ...
- 9 years ago
Wow!! I've managed to work it out :)
I've read the following post again https://www.dropboxforum.com/t5/API-support/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202After this, all I additionally changed is
echo $result;
to
$data = base64_encode( $result ); echo '<img src="data:image/jpg;charset=utf8;base64,'.$data.' />';
and now it works!! Thank you so much!
Best,
Knal
knalpiap
9 years agoHelpful | Level 5
Wow!! I've managed to work it out :)
I've read the following post again https://www.dropboxforum.com/t5/API-support/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202
After this, all I additionally changed is
echo $result;
to
$data = base64_encode( $result ); echo '<img src="data:image/jpg;charset=utf8;base64,'.$data.' />';
and now it works!! Thank you so much!
Best,
Knal
Inderjeetdev
2 years agoHelpful | Level 5
It worked:
$data = base64_encode( $response );
echo '<img src="data:image/jpg;base64,'.$data.'" />';About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!