Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Michael T.82
9 years agoNew member | Level 1
Sync individual files to iOS
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
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
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.
- Michael T.829 years agoNew 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?
- Greg-DB9 years ago
Dropbox Community Moderator
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
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!