Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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 to display the image. Please help me. I am using php.
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.
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.
Hi there!
If you need more help you can view your support options (expected response time for a 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!