We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pscs
8 years agoNew member | Level 2
Uploading to our Dropbox using API?
Is this possible? We want users of our software to be able to upload diagnostic information (logs etc) to our Dropbox simply - eg by clicking a button in our software - so that we an use that inform...
- 8 years ago
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. It sounds like you already have a good idea of the risks with doing so, i.e., a malicious user could extract the access token and read other files, etc. Routing this through your own server as you mentioned would be a workaround for this.
I'll send this along as a feature request for a safe way to do this directly, but I can't promise if or when this would be implemented.
Greg-DB
Dropbox Community Moderator
8 years agoThe 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. It sounds like you already have a good idea of the risks with doing so, i.e., a malicious user could extract the access token and read other files, etc. Routing this through your own server as you mentioned would be a workaround for this.
I'll send this along as a feature request for a safe way to do this directly, but I can't promise if or when this would be implemented.
- pscs8 years agoNew member | Level 2
Thanks. That's what I suspected.
It would be nice if there was 'anonymous upload' type functionality - even if it's just based off the 'request files' function which seems to be almost what is needed - if only the uploads could be automated using the request URL.
- Greg-DB8 years ago
Dropbox Community Moderator
Thanks for the feedback!
By the way, I should also mention the /2/files/get_temporary_upload_link functionality. That would still require you to use your own server to make the API call itself, as it requires an access token, but it would at least enable the client to then upload directly to Dropbox without sending the data through your server. (Note that it's still only in preview though.)
About Discuss Dropbox Developer & API
Make connections with 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!