We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Sheeja
6 months agoExplorer | Level 3
Can we access/upload files to a shared folder that's outside my root folder programmatically
We have a requirement , where I have access to a shared folder which is placed outside of my root foler. I need to programmatically access/upload files/create sub folders inside this shared folder . ...
- 6 months ago
Hi Sheeja,
You cannot access something that is outside your root folder in any way either programmatically or not. Probably something confuses you. Any data should be available in your account folder tree before you be able to do anything there. Outside your root means either data stay inaccessible to you or not mounted/copied in your account.
Sheeja wrote:...We could access folders inside my root folder using the accesstoken+secret token combination generated by the App. ...
Keep in mind that if your account is team account and with shared space, by default you have access only to your member folder and nothing outside! To be able get access to your root space and to all nested team folders/spaces there, you need to explicitly change your namespace - i.e. to change the default home namespace to root namespace. You can see if your home and root namespaces are different and which one is the root namespace using /2/users/get_current_account or equivalent SDK method (focus on root_info in the result). You may need to set the root with value of HTTP header Dropbox-Api-Path-Root or equivalent SDK method.
Hope this helps.
Здравко
Legendary | Level 20
Hi Sheeja,
You cannot access something that is outside your root folder in any way either programmatically or not. Probably something confuses you. Any data should be available in your account folder tree before you be able to do anything there. Outside your root means either data stay inaccessible to you or not mounted/copied in your account.
Sheeja wrote:...We could access folders inside my root folder using the accesstoken+secret token combination generated by the App. ...
Keep in mind that if your account is team account and with shared space, by default you have access only to your member folder and nothing outside! To be able get access to your root space and to all nested team folders/spaces there, you need to explicitly change your namespace - i.e. to change the default home namespace to root namespace. You can see if your home and root namespaces are different and which one is the root namespace using /2/users/get_current_account or equivalent SDK method (focus on root_info in the result). You may need to set the root with value of HTTP header Dropbox-Api-Path-Root or equivalent SDK method.
Hope this helps.
Sheeja
6 months agoExplorer | Level 3
Hi @Здравко
Thanks for the reply. Let me give more context around the scenario. We have a customer : Gracehill who wants our team to develop a solution that creates dropbox folders/upload/download files from these folders.They have a dropbox account and they have shared the access with us.Take for example, Shameer is my login id .Im able to do all API operations within this folder. But Gracehill has shared another folder with us, which is Chargebee Sandbox and they want us to to do all operations within this folder.I have attached a screenshot for the folder structure .How can I create folders and manage permissions inside this new shared folder?
Basically I would like to programmatically perform all API operations inside ChargeBee SandBox folder.
As I mentioned earlier, I tried this option: to access dropbox from my code. But using this, Im just able to access root folder : Shameer and not the shared folder outside it
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!