如何修复ios错误请求/1/files_put/auto/captr.(NSURLErrorDomain错误-1005。)

时间:2013-12-04 08:53:10

标签: ios dropbox

使用Dropbox api的uploadFileFailedWithError委托,我们可以更好地重定向无法上传的文件,而不是使用超时来玩它。

我执行了以下操作以在投递箱上传多个文件。

- (void)restClient:(DBRestClient *)client uploadFileFailedWithError:(NSError *)error {

NSLog(@"File upload failed with error - %@", error.userInfo);

NSString *myfile=[error.userInfo valueForKey:@"sourcePath"];



[self.restClient uploadFile:@"youfilename" toPath:@"/yourfilepath" withParentRev:nil fromPath:myfile];

}

这样,无法上传的文件将重新尝试上传..

0 个答案:

没有答案