One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
thomas1976
3 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
- Greg-DB
Dropbox Staff
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.
- thomas1976New 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-DB
Dropbox Staff
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 developers806 PostsLatest Activity: 9 hours ago
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 or Facebook.
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!