ios - Upload a file to particular folder in Dropbox -
I have an iPhone app where I want to upload a file to the user's Dropbox on the local disk of the phone. I want to give the user the option of uploading anywhere in my dropbox. I have seen so many apps doing this, but I have not found any examples online, which takes me through a step by step tutorial. ! Any indication will be helpful
Edit:
// Setup DBSession * dbSession = [[DBSession alloc] initWithAppKey: @ "XXX" appSecret: @ "XXX "Root: kDBRootDropbox]; [Dbsession set-up session: db session]; [Self handlobebox session]; DBRestClient * restclient = [[DBRestClient alloc] initWith session: DB session]; Restclient.delegate = self; [NSTM Scheduled Timer Widetime Interval: 5.0 F Block: ^ {[Self Testing SavefileTodbox: Resclient]; } Repeats: No]; // relevant methods - (void) testSaveFileToDBox: (DBRestClient *) Customer {NSString * localPath = [[NSBundle mainBundle] pathForResource: @ "info" ofType: @ "plist"]; NSString * filename = @ "work-draft.txt"; NSString * destDir = @ "/"; [Client upload file: File name Pad: destDir with PaperRiv: Zero with pan: Local Path]; } - (zero) restClient: (DBRestClient *) subscriber uploadedFile: (NSString *) srcPath metadata: (DBMetadata *) Metadata {NSLog (@ "File upload successfully to path:% @", Destagram from NSString *) from Metadata. Path); } - (zero) restClient: (DBRestClient *) Customer uploadFileFailedWithError: (NSError *) Error {NSLog (@ "file failed with upload error -% @", error); } - (zero) restClient: (DBRestClient *) Customer uploadProgress: (CGFloat) progress forFile: destPath: (NSString *) srcPath {NSLog (@ "Progress upload"); }
The file "work-draft.txt" does not exist, but then the error delegation method is missing. Fwiw, it's all in the app representative.
The closest thing is. It seems that Dropbox does not provide an official "Folder Selector", so all these applications are excluding their own custom solutions shown above.
Comments
Post a Comment