One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
ravikiranreddy
2 years agoExplorer | Level 4
Upload a file to dropbox dynamically with a refreshed access token
I was in the process of uploading a file to Dropbox using a Golang application. However, after a certain period, the access token expired, leading to an unsuccessful upload of the file.
To ensure the file is consistently uploaded with a valid token, it's crucial to establish a mechanism that checks the token's validity in real-time and handles expiration. If the token is identified as expired, it needs to be dynamically refreshed without requiring manual intervention.
My query is: Does Dropbox offer an API that enables automatic and dynamic access token refreshing, eliminating the need for manual intervention?
ravikiranreddy You can also find more information on this at the following locations:
- ЗдравкоLegendary | Level 20
Hi ravikiranreddy,
Yes, you need refresh token that can be used to programmatically get access token without further user interaction. Take a look here how can be done.
Hope this helps.
- Greg-DB
Dropbox Staff
ravikiranreddy You can also find more information on this at the following locations:
- ravikiranreddyExplorer | Level 4
Thanks you Greg
using-oauth-2-0-with-offline-access helped me to implement refresh tokens offline without manual intervention.
About Discuss Dropbox Developer & API
Make connections with other developers807 PostsLatest Activity: 2 years 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!