You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
phyopwint
7 years agoExplorer | Level 3
Show Image from get_temporary_link in Apps.
I have specific dropbox folder that will include only one image at all time. My app needs to get this dropbox image and show this image in image element. Whenever dropbox image change, my app needs t...
- 7 years agoThese links do expire after four hours. If you attempt to access an expired link, it will fail.
To be clear though, are you saying the returned link fails less than four hours after it was retrieved?
In general though, if you need to access file data, you should use /2/files/download. It returns the image data directly:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
Or, if you need a long-lived link, you can use /2/sharing/create_shared_link_with_settings:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
That can be modified for different use cases as shown here:
https://www.dropbox.com/help/desktop-web/force-download
Greg-DB
Dropbox Staff
These links do expire after four hours. If you attempt to access an expired link, it will fail.
To be clear though, are you saying the returned link fails less than four hours after it was retrieved?
In general though, if you need to access file data, you should use /2/files/download. It returns the image data directly:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
Or, if you need a long-lived link, you can use /2/sharing/create_shared_link_with_settings:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
That can be modified for different use cases as shown here:
https://www.dropbox.com/help/desktop-web/force-download
To be clear though, are you saying the returned link fails less than four hours after it was retrieved?
In general though, if you need to access file data, you should use /2/files/download. It returns the image data directly:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
Or, if you need a long-lived link, you can use /2/sharing/create_shared_link_with_settings:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
That can be modified for different use cases as shown here:
https://www.dropbox.com/help/desktop-web/force-download
phyopwint
7 years agoExplorer | Level 3
Thank you for your solution. It was working.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 23 hours agoIf 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!