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
Alex_Ch
2 years agoHelpful | Level 5
How can i get an acces token without a login?
why am I using Dropbox? I´m developing a project with react. It's pretty simple, just a form where ussers send a pdf file. The thing I want to do is just that the ussers send their file and its up...
- 2 years ago
Hi Alex_Ch,
Since you want to access your own account (not user's accounts), the best way would be to implement the entire communication to your Dropbox account (or the communication management, at least) on your server side. In such a way you can use pre-generated refresh token usable to refresh your access token (generation whenever needed - something performed automatically when official SDK is in use). There is no way access token to be generated completely without user confirmation (the your confirmation in particular case - your account is the target), but once refresh token is generated you can use it without further interaction from your side or your site's users.
One scenario is on post the pdf, it flows to your site and next from your site to Dropbox (i.e. your site behave like a proxy). Other scenario is on user intent to post, on your site a temporary upload link to be generated and the pdf to be uploaded directly to Dropbox (without passing through your site) using this link. In the both cases you don't expose any credentials to the user's browser, something that should be followed (or is advisable, at least).
Hope this gives direction.
Alex_Ch
Helpful | Level 5
excuse me but, how could i use the http request to refresh the access token in the sdk for javascript?
Здравко
2 years agoLegendary | Level 20
Alex_Ch wrote:excuse me but, how could i use the http request to refresh the access token in the sdk for javascript?
You can use raw http request, but you don't need to do that. As I said you can use SDK and in every SDK (including Dropbox Javascript SDK) are equivalent calls. It's your decision what you will use (depending on your development environment server side - you haven't mentioned what are you using there till now).
Add: You may have skipped what I wrote above and I will repeat again. When your use some SDK (doesn't matter what exactly) the refreshing is performed automatic internally. You don't need to do more that proper client object initialization. Everything else is the same.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 23 hours agoIf 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!