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
aadi
7 years agoExplorer | Level 3
Download a file with the API
Hi I'm using https://dropbox.github.io/dropbox-api-v2-explorer/#files_download for download file. I want to provide directly a link to the end user or download start just load the code. I'm usi...
- 7 years agoTo let the user download the file directly, you can instead use /2/files/get_temporary_link to get a link to the file, and pass the link to the client:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
Greg-DB
Dropbox Staff
To let the user download the file directly, you can instead use /2/files/get_temporary_link to get a link to the file, and pass the link to the client:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
aadi
7 years agoExplorer | Level 3
Hi Greg,
Thanks for reply.
What’s about expiration of this temporary link?
May i can expire this link after user click/download file? Or is there any way for direct download file (no need to click any button) just load page and file automatically start to download..
Thanks for reply.
What’s about expiration of this temporary link?
May i can expire this link after user click/download file? Or is there any way for direct download file (no need to click any button) just load page and file automatically start to download..
- Greg-DB7 years agoDropbox Staff
These links expire after four hours. It's not possible to manually expire them earlier than that.
If you control the web server and the user is using a typical web browser/client, you can probably return a redirect to the temporary link itself. Exactly how you do so would depend on your web framework though.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 8 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!