cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uploading files to a Team folder

uploading files to a Team folder

mdsantos1979
New member | Level 2

Hi,

 

I'm trying to upload files to team folder using the API V2, but I not getting it. I'm able to upload to the user folder, but I can't upload to Team folder.

 

I'm also able to list the team folders, using:

 

using (var dbxTeams = new DropboxTeamClient(accessTokenTeam))
{
    try
{
 var list = await dbxTeams.Team.TeamFolderListAsync();


foreach (var folder in list.TeamFolders)
{
Console.WriteLine($"Team Folder: {folder.Name}");
Console.WriteLine($"Team Folder: {folder.TeamFolderId}");
}
}

But how to upload files to them? The  DropboxTeamClient class don't have methods to do so.

1 Reply 1

Greg-DB
Dropbox Staff

Regardless of what folder you're uploading to, you would use the same upload methods, such as UploadAsync in FilesUserRoutes on a DropboxClient. There aren't separate team client methods for uploading to team folders. You can upload to whatever folders (team folder or not) that the connected user account has access to.

 

There is some additional configuration needed if you are trying to access team folders in a team space though. Please refer to the Team Files Guide for information on that.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?