We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Takashi Homma
3 years agoExplorer | Level 4
I would like to know whether the folder is under a team folder or a user folder
I would like to know whether the folder that specified in the Chooser widget is under a team folder or a user folder. Is there an appropriate API for this? I guess it is available by folder id and g...
- 3 years ago
Yes, to get information about a specific item, you would use /2/files/get_metadata.
Здравко
3 years agoLegendary | Level 20
Takashi Homma wrote:I would like to know whether the folder that specified in the Chooser widget is under a team folder or a user folder. Is there an appropriate API for this?
Hi Takashi Homma,
There is no direct API call that gives you that information. Once you get the file path (in the metadata) you can compare and see if is the residing place of the file in your (or your app' users) personal folder or no. You don't need other API calls - just literal comparison. If you don't have the home folder path yet, only getting metadata for the home folder itself may be needed (in such case you have to use Dropbox-API-Path-Root header) - executed single time.
A good way would be to review your application algorithm, so that can work without such information. Focus on data processing, not where the file(s) comes from - let the user controls this. 😉
Hope this gives direction.
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!