DBUserClient * client = [DBClientsManager authorizedClient ];
DBFILESWriteMode *mode = [[DBFILESWriteMode alloc] initWithOverwrite];
[[client.filesRoutes uploadData:objPath
mode:mode
autorename:@(YES)
clientModified:nil
mute:@(NO)
inputData:fileData]
setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *networkError) {
if (result) {
NSLog(@%@\n", result);
} else {
NSLog(@%@\n%@\n", routeError, networkError);
}
}];
that's the code encountered the error.
I tried many times but still not found the way to correct it.