简体   繁体   中英

iOS: Upload multiple files using Dropbox

All that I have researched integrating Dropbox iOS SDK requires logging in to authenticate/authenticate a user.

But this is what I want to accomplish

  1. Use only one user account. (Without authorization)
  2. Create a random public folder(in same account) and upload files to that folder.
  3. Get the folder link.

It's basically sending generated files from the app to an account.

How can I possibly do this?

The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.

For example, any user who extracts the access token from your app will be able to read every file in the Dropbox account, delete everything, replace it, etc.

However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your app. (Just be careful not to revoke it, eg via https://www.dropbox.com/account/applications .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM