Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
toki4004
3 years agoHelpful | Level 5
Download ANY file in folder
To download a file I need a full path. What if I don't know the name of the file? How would I list that path then to grab any txt file?
"path": "/Homework/math/Prime_Numbers.txt"
- 3 years ago
toki4004, You can search for such files using /2/files/search_v2/continue_v2. Just restrict the search to particular extension and look in filename only with the same string as the extension. In the resulting list you will see all such files with their paths, ids, and revisions (you can use anything of them to download particular file or set of files).
Hope this helps.
Здравко
3 years agoLegendary | Level 20
toki4004, You can search for such files using /2/files/search_v2/continue_v2. Just restrict the search to particular extension and look in filename only with the same string as the extension. In the resulting list you will see all such files with their paths, ids, and revisions (you can use anything of them to download particular file or set of files).
Hope this helps.
- toki40043 years agoHelpful | Level 5
If I use "search" - what would I put for "query"? I don't know the file name - I only know the extension so I'll put that under options =>file_extensions
But query is required...
- Здравко3 years agoLegendary | Level 20
Здравко wrote:... You can search for such files using /2/files/search_v2/continue_v2. Just restrict the search to particular extension and look in filename only with the same string as the extension. ...
toki4004 wrote:If I use "search" - what would I put for "query"? I don't know the file name - I only know the extension so I'll put that under options =>file_extensions
But query is required...
Hm..🤔 What's the name of that parameter where you denote what you're looking for (either from file content or its name)? In the particular case we need to direct Dropbox to search in filename only... Ohh...yes. 😀 That was the "query"! 🤫
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!