We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Winnie1874
4 years agoNew member | Level 2
Use of Existing API to Post files from a Linux Server to Shared Dropbox Folder
Hello, I'm brand new here and although I've done a little digging I have not yet found a method for me to post files originating directly on a Linux server to a shared folder though automation via an API.
Ordinarily, I would have time to dig through the docs, but I'm up against a serious time crunch so I thought I'd ask the community for guidance to help accelerate my progress. Thanks for any and all assistance.
1 Reply
- Greg-DB4 years ago
Dropbox Community Moderator
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developersSpecifically, to upload files, you can use /2/files/upload (or refer to the "upload sessions" functionality for larger files):
https://www.dropbox.com/developers/documentation/http/documentation#files-upload
By the way, that's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
You can use that to upload to any location in a connected account, including shared folders, by specifying the relevant "path", as long as you register your app for "Full Dropbox" access. You can find more information on the different permissions here:
https://www.dropbox.com/developers/reference/developer-guide#app-permissions
You may also be interested in reading the following guides in particular:
- https://www.dropbox.com/developers/reference/getting-started
- https://developers.dropbox.com/dbx-file-access-guide
- https://developers.dropbox.com/dbx-sharing-guide
Hope this helps!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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 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!