One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
MLPDev
2 years agoNew member | Level 2
File upload
Hi guys.
I'm creating a React app. I'm planning to save files uploaded by the user in my Dropbox. Is it possible through the API?
By the way, I tried using an access token generated from the Dropbox site, and it is working fine. However, after a couple of hours, the token expires, so I need to generate it again and update the code. Is there any solution using any of the Dropbox API?
- Greg-DB
Dropbox Staff
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.
Dropbox issues short-lived access tokens, which expire after a few hours. Apps can get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. Refresh tokens do not expire automatically and can be used repeatedly. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 4 days ago
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!