cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 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: 
Highlighted

Sync individual files to iOS

New member | Level 1
New member | Level 1

New to this stuff ... developing a new iOS app in swift using the new dropbox sdk.

I don't need to see the users entire dropbox folders. Just specific to the app

Is there an example of how to do this? I think I have seen something about an app specific folder and authentication for dropbox.

 

Any examples for this please?

3 Replies 3
Highlighted

Re: Sync individual files to iOS

Dropboxer
Dropboxer

It sounds like you want to use the "app folder" permission. You can find more information about the different permissions here:

https://www.dropbox.com/developers/reference/devguide#app-permissions

You can select the permission when registering an app:

https://www.dropbox.com/developers/apps/create

When using the API with an app with the app folder permission, you just supply paths such as "/test.txt" and the API will automatically interpret that to mean a file named "test.txt" inside your app's app folder.

Highlighted

Re: Sync individual files to iOS

New member | Level 1
New member | Level 1

Hmm, I need to allow the user to be able to browse their folders and then pick a file that I will download and save on their iOS device.

So the app needs full access to dropbox.

Can you point me to an example of a ios file picker for dropbox please?

 

Highlighted

Re: Sync individual files to iOS

Dropboxer
Dropboxer

It sounds like you may want to use the Dropbox iOS Chooser then:

https://www.dropbox.com/developers/dropins/chooser/ios

Alternatively, you can use UIDocumentPickerViewController, for which the Dropbox app supports the modes:

- UIDocumentPickerModeImport
- UIDocumentPickerModeExportToService

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

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?