We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
danc222
6 years agoExplorer | Level 3
Direct link to image file
Hi, I'd like to know if there is a way to create a direct link to a file using the API. My app requires sending an image link to a 3rd party's API for image recognition. When I test the link created ...
- 6 years ago
Thanks for the link. Neat tool. I found a solution!
The share/get_temporary_link is the one you want. You can test it out in the API explorer real quick to verify before you write the code.
Cheers!
TaylorKrusen
Dropbox Staff
Hi,
Is the 3rd party API you're calling expecting a file or a URL to an image?
I'd expect it to need the entire file, in which case you'll need to download (files/download) the file onto your server and upload the file to the other API for processing.
danc222
6 years agoExplorer | Level 3
Hi, thanks for the reply. The API is expecting a URL to the image. You can actually see for yourself here https://imagga.com/auto-tagging-demo
Links generated via the Dropbox API do not work as I assume the URL given is a 'container' with meta data, download links and comments etc. I am looking for a direct link to the media. Is this possible with Dropbox? Thanks
- danc2226 years agoExplorer | Level 3
To add some more information:
I created a link of an image and got something that looked like:
www.dropbox.com/s/8um0tttqgbjq5c7/my_image.jpg
But after downloading the image to my desktop, the actual link to the image file looked like:https://uc16303a726d517a4932231f53ee.dl.dropboxusercontent.com/cd/0/get/AjqdFl9BQdUPdRx5SUC83nDAmmblEed32xSG8mQqZdZzmQuzzl7tylLUExaBUG6blzESKf-QpaTZRsaL8SP-TLfY5ocst4aL5pbQQF8nAA3A/file
This form of URL works with the API in question. So my question is...is there a way to generate this URL? - TaylorKrusen6 years agoDropbox Staff
Thanks for the link. Neat tool. I found a solution!
The share/get_temporary_link is the one you want. You can test it out in the API explorer real quick to verify before you write the code.
Cheers!
- danc2226 years agoExplorer | Level 3
Thanks Taylor, that seems to do the trick! I see temporary links expire after 4 hours but new ones can be generated on demand. Works fine for me.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!