cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DropBox Auth flow issue

DropBox Auth flow issue

gdev
New member | Level 2

Would it be possible to have a web page where a user can select multiple files from our server and have the server send those files directly to that user's dropbox account?

 

I assume they would need to authenticate with dropbox somehow then the server uses that session to upload the files?

How would I be able to do this if at all possible?

4 Replies 4

Greg-DB
Dropbox Staff
Yes, this is possible. The easiest way would be to use the Dropbox Saver:

https://www.dropbox.com/developers/saver

If you want a more automated or custom integration though, you can use the Dropbox API instead. You would need to send the user through the OAuth app authorization flow:

https://www.dropbox.com/developers/reference/oauth-guide
https://www.dropbox.com/developers/documentation/http/documentation#authorization

Then you can upload programmatically, e.g., using /2/files/upload:

https://www.dropbox.com/developers/documentation/http/documentation#files-upload

gdev
New member | Level 2

Nice! Thanks for the quick response. Any chance you know of any PHP examples or Laravel examples?

 

Thanks in advance

Greg-DB
Dropbox Staff
For the Dropbox Saver, the integration is done in JavaScript in the browser.

For the Dropbox API, we don't have any official PHP/Laravel SDK or examples, but there are some third party PHP libraries listed here:

https://www.dropbox.com/developers/documentation/communitysdks

gdev
New member | Level 2

You the man, thanks Greg!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    gdev New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?