Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm attempting to upload a file to a shared (team) folder in Dropbox.
\ (hidden root)
\[My Personal Folder]
\My Company Team Folder
\Activities
\2024-04-11
File A
File B
I want to add files to \My Company Team Folder\Activities\2024-04-11.
This is the code (PowerShell):
$AccessToken = 'XXXXX'
$TeamMemberId = '123456' # an administrator
$InFile = ~/Desktop/SomeFile.pdf
$Destination = '/Activities/2024-04-11/SomeFile.pdf'
Hello @craibuc,
Based on the error message 'path/no_write_permission/', this indicates that you don’t have write permissions to the folder to upload the file. For example, you don’t have write permission to the folder /Activities/2024-04-11. Please double-check if you have editor permission on the folder.
If you are still having difficulty, could you provide the values for the $TeamMemberId and $RootFolderId? Alternatively, you can open an API ticket using the following link: https://www.dropbox.com/developers/contact
I found the solution: I needed to include the team-folder's name in the path. So, instead of '/Activities/2024-04-11/SomeFile.pdf', it needed to be '/My Company Team Folder/Activities/2024-04-11/SomeFile.pdf'
The documentation on this is *terrible*, not to mention the contortions that developers need to perform to list shared folders and add content to them. Your API needs a complete revision to make it easier to use.
Hi there!
If you need more help you can view your support options (expected response time for a 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!