We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Adam S.66
10 years agoNew member | Level 1
Managing sensitive files with a server.
My friend is a lawyer. His clients submit documents to him through Dropbox. They are sensitive legal documents. He asked if there was some way that I could build a website (web app) that will manage ...
Greg-DB
Dropbox Community Moderator
10 years ago[Cross-linking for reference: https://stackoverflow.com/questions/34928673/can-i-upload-files-from-a-custom-website-form-to-dropbox ]
It sounds like you want to build an app that only connects to a single Dropbox account. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.
However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for the account and app. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/security .)
On the StackOverflow question, one poster recommended using the JavaScript SDK for this, but note that doing so would expose serious security issues, like I mentioned above. Instead, you could handle the integration server-side only, which would allay most of those concerns. In that case, I would recommend using an official SDK for your platform, if possible, or using a third party library, or the HTTP interface itself:
https://www.dropbox.com/developers/
Work through the tutorial and documentation for whichever you end up using to see how to upload files. The important thing is to make sure you only keep the access token on the server, where the end-users won't have access to it. That does mean however that the uploaded files would have to go through your server before going to Dropbox though.
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!