1
AFNetworking을 통해 많은 파일을 여러 개의 작은 파일 또는 두 개의 큰 파일로 업로드하지만 한 번에 총 250MB 이상의 파일을 업로드하지 않습니다.AFNetworking Request Time Out (AFNetworking 요청 시간 초과되었지만 완료 됨) 요청
[operation setShouldExecuteAsBackgroundTaskWithExpirationHandler:^{
NSLog(@"Request time out");
}];
내 문제는 내 업로드 내 모든 파일이 업로드 된 경우에도 완료하는 데 약 10-20min 걸릴 수있다, 때 위해 내 응용 프로그램을 종료하거나 내가 말하는 내 아이폰을 닫을 때 업로드 계속 할 수 있도록하는 그것은 "Request time out"메시지를 얻습니다. 어떤 사람이 정확히 무슨 일이 일어나고 있는지 그리고이 문제를 해결하기 위해 무엇을해야하는지 알고 있습니다.
NSMutableURLRequest *apiRequest =
[self multipartFormRequestWithMethod:@"POST"
path:kAPIPath
parameters:params
constructingBodyWithBlock: ^(id <AFMultipartFormData>formData) {
//attach file if needed
if (uploadFile) {
[formData appendPartWithStreamingURL:uploadFile
name:@"file"
//fileName:[params objectForKey:@"title"] //Change to test.mp4 or .m4v I'm not sure
mimeType:@"video/quicktime"]; //Change to video/quicktime
}
}];