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

Amicao's avatar
Amicao
Explorer | Level 3
3 years ago

How to use Dropbox as server side Laravel Filesystem continuously?

Hello, good evening, my name is Victor, I'm currently on behalf of a customer to solve a doubt. I need to make a Laravel application for him that uses Dropbox as its Filesystem for file storage. Currently I have implemented this project schema with the spatie/flysystem-dropbox dependency like this https://github.com/VictorRayan/laravel-dropbox/. With this, the application is already able to perform file management operations on Dropbox, however, it uses the Access Token that expires periodically, as it is a server application, it is not feasible to have to manually update the temporary token all the time.

So the solution that I imagine I've read in the documentation would be to use the Dropbox app's ID and Secret to generate a refresh token request and periodically obtain, in an automated way, new expired access tokens to continue using in this already implemented system.

My problem is that I read and read a lot of the documentation about HTTP and OAuth flow and for me still its implementation and functioning is however obscure, I can't understand. I would be very grateful if you could help me with some example according to what I need.

    • Amicao's avatar
      Amicao
      Explorer | Level 3

      Thank you very so much! Now it's clarified to me, I understood well how it works.

      Really, this will be just the PHP translation haha

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 17 hours ago
325 Following

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!