Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Tharan R.
10 years agoNew member | Level 1
How to dynamically display images from drop box
i have images in my dropbox. I would like to display images dynamically. I mean. i pull the file name from my database(same file name with .jpeg in dropbox). according to the file name i would like t...
- 10 years ago
Hi Tharan, if you want to get a link to the file content, you can use the /2/files/get_temporary_link endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
Or, if you want to get thumbnails for the images, instead of the full image file, you can use /2/files/get_thumbnail:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail
Note that this endpoint returns the thumbnail data directly, and not as a link, so you'd need to save/format it as necessary for display on in your app/site. Exactly how you do that is up to you and will depend on your app/site.
Or, if you do just want the original image data, you can use /2/files/download:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
That also returns the data directly.
Greg-DB
Dropbox Community Moderator
10 years agoHi Tharan, if you want to get a link to the file content, you can use the /2/files/get_temporary_link endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
Or, if you want to get thumbnails for the images, instead of the full image file, you can use /2/files/get_thumbnail:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail
Note that this endpoint returns the thumbnail data directly, and not as a link, so you'd need to save/format it as necessary for display on in your app/site. Exactly how you do that is up to you and will depend on your app/site.
Or, if you do just want the original image data, you can use /2/files/download:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
That also returns the data directly.
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!