3
3

More than 5 years have passed since last update.

iOSのDropBox SDKでupload時に403エラー

Posted at

FileUpload時に以下のようなエラー。

[WARNING] DropboxSDK: error making request to /1/files_put/hogehoge - (403) Forbidden File upload failed with error - Error Domain=dropbox.com Code=403 "The operation couldn’t be completed. (dropbox.com error 403.)" 

下記の初期化で
root: kDBRootDropbox
となっていたのを
root: kDBRootAppFolder
に直して解決。

AppDelegate.m
DBSession *dbSession = [[DBSession alloc]
      initWithAppKey:@"INSERT_APP_KEY"
      appSecret:@"INSERT_APP_SECRET"
      root: kDBRootAppFolder]; // either kDBRootAppFolder or kDBRootDropbox

デベロッパーサイトで登録するときに、アプリ固有のディレクトリを使うように設定したからかな?

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3