2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
ajay699patel
3 years agoNew member | Level 2
Uploading a file to own Dropbox account using API
Hi,
I want to upload the files from my machine to my own Dropbox account. I have created an App in Dropbox and generated an access token but it expires in sometime. How can I generate an access...
Здравко
3 years agoLegendary | Level 20
ajay699patel wrote:... I have created an App in Dropbox and generated an access token but it expires in sometime. How can I generate an access token and upload a file without going through authorization flow?
...
Hi ajay699patel,
At the beginning let's clarify that long lived access token is something obsolete and in spite an existing long lived access token (received some time ago) can still be used, issuing new such token is dropped already. Now all new access tokens are short lived and keep validity for 4 hours at most. There is new mechanism for long term access, without repeatable user authentication - refresh token. If you are using some of the Dropbox SDK's, there are examples (not all) that show how you can adapt your existing application or use them as a template for authentication' part for a new app. If you are performing direct calls to Dropbox servers (without any SDK), using only access token is no more possible for long term. You should extend your authentication procedure to use refresh mechanism. A simple example of such call sequence could be seen here. 😉
Hope this helps.
- ajay699patel3 years agoNew member | Level 2
Thanks for revalidating my approach😊😊. I am doing the same work round for uploading the files to my own Dropbox account👍.
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!