I am trying to save a file from dropbox as follows:
NSString *fileName = [NSString stringWithFormat:@"/newFile.json"];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString* path2 = [documentsDirectory stringByAppendingPathComponent:
[NSString stringWithFormat:@"%@", fileName]];
[[self restClient] loadFile:fileName intoPath:path2];
the file is located in the apps / appname / sandbox / newFile.json folder
but I get this error:
2012-05-12 21: 05: 46.824 Fast homework and business [934: 707] [WARNING] DropboxSDK: error request in /1/files/sandbox/newFile.json - File not found
but there is a file!
source
share