We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Hans-Peter
7 years agoExplorer | Level 4
File/Folder paths arent set
Hello, when I try to call /files/get_metadata of any file or folder, the returned entry doesn't contain path_lower or path_display. I am assuming that means those values aren't set, but I'm not sure...
- 7 years ago
If the path values aren't set, that means that "the file or folder is not mounted". There are a few ways that can happen:
- if you're looking at the contents of a shared folder that is itself not mounted
- if you're making an API call without an explicit "root", so the contents don't have anywhere to be "mounted" to
For example, the second one can occur if you're using a Dropbox Business API app with the "team member file acces" permission, and are supplying the "Dropbox-API-Select-Admin" header but aren't supplying the "Dropbox-API-Path-Root" header. With that admin header, you're accessing any team content, but without the root header, it isn't relative to anything. If that's the case, you should supply the root header. You can find information on how that works in the Namespace Guide.
The Content Access Guide may also be helpful reference.
Otherwise, if you share the code, I'll be happy to take a look and advise specifically.
Greg-DB
Dropbox Community Moderator
7 years agoIf the path values aren't set, that means that "the file or folder is not mounted". There are a few ways that can happen:
- if you're looking at the contents of a shared folder that is itself not mounted
- if you're making an API call without an explicit "root", so the contents don't have anywhere to be "mounted" to
For example, the second one can occur if you're using a Dropbox Business API app with the "team member file acces" permission, and are supplying the "Dropbox-API-Select-Admin" header but aren't supplying the "Dropbox-API-Path-Root" header. With that admin header, you're accessing any team content, but without the root header, it isn't relative to anything. If that's the case, you should supply the root header. You can find information on how that works in the Namespace Guide.
The Content Access Guide may also be helpful reference.
Otherwise, if you share the code, I'll be happy to take a look and advise specifically.
Hans-Peter
7 years agoExplorer | Level 4
Supplying the Dropbox-API-Path-Root header worked, thanks a lot!
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!