We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
alicera
5 years agoExplorer | Level 3
get download link
How to get a file download link with python and javascript?
3 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
If you need to download a file via the API, you can do so directly by using /2/files/download. That's files_download in the Python SDK, and filesDownload in the JavaScript SDK.
If you do need to download a file from a URL instead of directly from an API call though, you can call /2/files/get_temporary_link to get a temporary link to the file, which you can then use to download the file. That's files_get_temporary_link in the Python SDK, and filesGetTemporaryLink in the JavaScript SDK.
- alicera5 years agoExplorer | Level 3
I want to put the fixed path
data/
├── folder1
├── hello.json
├── haha.json
├── folder2
├── aa.json
Could I search the folder1 and get the link of hello.json and the link of haha.json with code?
Do you have suggestions?
- Greg-DB5 years ago
Dropbox Community Moderator
I see you opened a new thread for this. I'll follow up with you there.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!