Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
YKatz
8 years agoNew member | Level 2
Can't upload file to a shared folder in Dropbox Business
I am having difficulty uploading a file to any shared folders that I currently has access to (and I can see my access via .Sharing.ListFoldersAsync()). Regardless of how I change the path in Files.Up...
- 8 years ago
To be clear, can you confirm if you are referring to the "team space" I mentioned? (If not, and you just want to upload to a share folder mounted inside your member folder, you can use the path from Sharing.ListFoldersAsync.)
If you are trying to upload to the team space, once you know the namespace ID, you can use that as the path root. With the .NET SDK you can operate on the team space by setting the "Dropbox-API-Path-Root" header. The .NET SDK supports setting the Dropbox-Api-Path-Root header, via DropboxClient.WithPathRoot.
You can access the team shared space by using DropboxClient.WithPathRoot to set Dropbox-Api-Path-Root header:this.client = this.client.WithPathRoot(new PathRoot.NamespaceId(<namespace ID>));
Otherwise, please share the code and output that isn't working for you so I can get a better idea of what you're trying to do specifically.
Greg-DB
Dropbox Community Moderator
8 years agoIt sounds like you're referring to accessing the "team space". We have a namespace guide here that covers how to access that via the API:
https://www.dropbox.com/developers/reference/namespace-guide
- YKatz8 years agoNew member | Level 2
Hi Greg,
Okay I am able to access the shared folders using Team.NamespacesListAsync() but NamespaceMetadata doesn't provide any file path to use in order to upload files to it.
- Greg-DB8 years ago
Dropbox Community Moderator
To be clear, can you confirm if you are referring to the "team space" I mentioned? (If not, and you just want to upload to a share folder mounted inside your member folder, you can use the path from Sharing.ListFoldersAsync.)
If you are trying to upload to the team space, once you know the namespace ID, you can use that as the path root. With the .NET SDK you can operate on the team space by setting the "Dropbox-API-Path-Root" header. The .NET SDK supports setting the Dropbox-Api-Path-Root header, via DropboxClient.WithPathRoot.
You can access the team shared space by using DropboxClient.WithPathRoot to set Dropbox-Api-Path-Root header:this.client = this.client.WithPathRoot(new PathRoot.NamespaceId(<namespace ID>));
Otherwise, please share the code and output that isn't working for you so I can get a better idea of what you're trying to do specifically.
- YKatz8 years agoNew member | Level 2Hi Greg,
Thanks for the code example, I've managed to get it working on my end.
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!