objective c - Upload file with Dropbox SDK for iOS get Error Code 403 -
i'm trying upload file using dropbox sdk ios, have setup correctly framework, , link dropbox account, when i'm trying upload file receive error:
[warning] dropboxsdk: error making request /1/files_put/sandbox/dbapp.sqlite - (403) forbidden 2013-08-28 15:07:12.418 myapp[3761:c07] file upload failed error - error domain=dropbox.com code=403 "the operation couldn’t 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}
this code use:
nsstring *filename = @"dbapp.sqlite"; nsstring *destdir = @"/"; nsstring *oldpath = [[self applicationdocumentsdirectory] stringbyappendingpathcomponent:@"dbapp.sqlite"]; [[self restclient] uploadfile:filename topath:destdir withparentrev:nil frompath:oldpath];
anyone can me?
i have found problem, have wrong create type account of app in dropbox page, have choose datastore only, instead have choose file , datastore, have delete account, , create new one, , know code above works!
Comments
Post a Comment