You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

PDanos's avatar
PDanos
New member | Level 2
8 years ago

Upload Files Function Powershell - Bad Request

I'm trying to upload files using Powershell to a folder inside our company Dropbox. I'm using a function I googled somewhere (I don't have the URL at hand, sorry about that):   function Upload-File...
  • Greg-DB's avatar
    8 years ago

    Whenever debugging issues like this (or to retrieve the result, e.g., the file metadata, etc., even in the case of success) be sure to read the response body. It will contain more information, such as a specific error message.

     

    Based on your description though, it looks like the issue is that you're using a Business app with the team member file access feature without specifying the 'Dropbox-API-Select-User' header, which identifies which member of the Business team to operate on. 

     

    So, you should either add that header with the relevant member ID, or, if you only need to upload to a specific account anyway, register a different app with the full Dropbox or app folder permission instead. Those aren't Business apps, and just operate on a single account instead of the whole team. They can still be linked to accounts on Business teams though.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,911 PostsLatest Activity: 9 hours ago
333 Following

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 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!