I'm attempting to upload of a file using NSURLSession's support for background uploads.
NSURLSessionTask *task = [session uploadTaskWithRequest:request fromFile:fileUrl];
Everything works great in iOS8 but when I run the same code in iOS7, the task gets immediately cancelled with the error message:
"Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo=0x17df82a0 {NSErrorFailingURLKey=https://my.url.com/, NSErrorFailingURLStringKey=https://my.url.com/, NSLocalizedDescription=cancelled}"
As far as I can tell, this should be supported in iOS7 but I haven't found anything to explain why this would be happening or how to fix it.