We’re aware of an issue causing slower load times on the Dropbox Community forum. It should be resolved soon. Thanks for your patience!
Forum Discussion
thomas1976
4 years agoNew member | Level 2
Switf : Upload a file to the same folder for multiple user
Hello,
I am developping a swift application for IOS (Ipad) using the dropbox api.
I create a new dropbox account and setup the application with it.
In my application i need to transfert files to as specific folder that a create with this account.
The problem is that if a user already has a dropbox account and sign with it when he transfers the files, they will be in his directory.
How can i use the same folder for every users ? so that the files will always be uploaded to the same folder ?
Is it possible to have a shared directory with several users that i can use it in my application to upload files ?
Thanks in advance
Thomas
3 Replies
- Greg-DB4 years ago
Dropbox Community Moderator
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files/folders. While it is technically possible to always connect to just one account for all users, we do not officially support this, for various technical and security reasons.
- thomas19764 years agoNew member | Level 2
Hello,
Thanks for you answer.
If i use a business account and setup a shared folder can i access it trough the api ?
Must i do something special in my script ?
Ps: this is not a commercial or public application.
Thanks
- Greg-DB4 years ago
Dropbox Community Moderator
Yes, you can register an app for "full Dropbox" access, if you haven't already, and use that to interact with any shared folders in the connected accounts of your users. This doesn't require a Business account in particular; any kind of account can use shared folders.
You can find information on interacting with the sharing functionality on the API in the Sharing Guide. You can find the documentation sharing functionality in the SwiftyDropbox library here.
About Discuss Dropbox Developer & API
Make connections with other developers
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!