cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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

Highlighted

Saving files to dropbox of the user

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
Highlighted

Re: Saving files to dropbox of the user

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-...

Highlighted

Re: Saving files to dropbox of the user

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.

Highlighted

Re: Saving files to dropbox of the user

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?