我試圖上傳一個文件使用Dropbox的SDK的ios,我已經正確安裝框架,並與Dropbox帳戶的鏈接,但現在當我試圖要上傳的文件我收到此錯誤:用Dropbox SDK上傳文件的iOS獲取錯誤代碼403
[WARNING] DropboxSDK: error making request to /1/files_put/sandbox/DBApp.sqlite - (403) Forbidden
2013-08-28 15:07:12.418 MyApp[3761:c07] File upload failed with error - Error Domain=dropbox.com Code=403 "The operation couldn’t be completed. (dropbox.com error 403.)" UserInfo=0x11e77ef0 {sourcePath=/Users/Piero/Library/Application Support/iPhone Simulator/6.1/Applications/553ACC67-D119-44A9-B7E0-7188773AD496/Documents/DBApp.sqlite, destinationPath=/sandbox/DBApp.sqlite, error=Forbidden}
,這是我的代碼使用方法:
NSString *filename = @"DBApp.sqlite";
NSString *destDir = @"/";
NSString *oldPath = [[self applicationDocumentsDirectory] stringByAppendingPathComponent:@"DBApp.sqlite"];
[[self restClient] uploadFile:filename toPath:destDir withParentRev:nil fromPath:oldPath];
任何人都可以幫我嗎?
我覺得你的描述中還是有一些東西沒有... .... @Piero – Kamarshad