cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Get summer ready with Dropbox basic - travel documents, plans, progress reminders and more, right over 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: 

Saving files to dropbox of the user

Saving files to dropbox of the user

derstinebuyagan
Explorer | Level 3

I'm trying to integrate dropbox into our application. We have a requirement that we need to save some files in the user's dropbox. Can you point me in the right direction? I'm using C# and Windows Forms. 
Thank you.

3 Replies 3

Re: Saving files to dropbox of the user

Greg-DB
Dropboxer

We have an official .NET SDK you can use. You can find information on getting started with that, including installation instructions and example code, here:

 

https://github.com/dropbox/dropbox-sdk-dotnet

 

For example, to save files to a connected user's account, you could use the UploadAsync method:

 

https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadA...

 

There's an example of using that here:

 

https://github.com/dropbox/dropbox-sdk-dotnet/blob/43ec6a3273d461a6f06b9301791c7ac811a3bfb8/dropbox-...

Re: Saving files to dropbox of the user

derstinebuyagan
Explorer | Level 3

What we are going to do is to save the file in user's dropbox, not in our dropbox so we need to authenticate them. It looks like the example is using our dropbox folder not the user's dropfox.

Re: Saving files to dropbox of the user

Greg-DB
Dropboxer

That example and the SDK are not limited to only your own account. That example implements the OAuth app authorization flow, to get an access token for the end-user, whoever that may be. I recommend reading the OAuth Guide for an overview of how that works.

Poll
Which Dropbox Plan do you have?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    derstinebuyagan Explorer | Level 3
What do Dropbox user levels mean?
Need more support?