cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: How to dynamically display images from drop box

How to dynamically display images from drop box

Tharan R.
New member | Level 1
Go to solution

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.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

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.

Need more support?