NSURLSession upload in background file size limit

Hello,


I am having problems managing large files with NSURLSession. My app upload to the server photos and videos from the photo library and I have problems with large files (2Gb more or less).


For upload the files to the server I'm using NSURLSession with background session configuration. If I upload videos with a size minor than 2GB the file is uploaded properly in all of my test devices. With video files of 2G the upload process does not works in all of the devices.


It's working in iPad air with 8.1.2, in iPad air with 7.2, in iPhone 5S with 8.3 and in iPhone 6 plus with 8.2

It's not working in iPhone 5 with 8.1.2


Are there a limitation for that?


*I have checked that my test devices have at least 5GB of memory free.

Are you testing over WiFi or cellular? There are per-24hr limits for both, with the cellular one being much lower than WiFi.

Hello Dex,


I'm testing always over WiFi. About the per-24hr limits, I didn't know this limitation, but I don't think that is my problem.


Doing the test and using WiFi I can upload a 2GB file to the server in 1 hour more or less


- The behavior in "iPad air with 8.1.2, in iPad air with 7.2, in iPhone 5S with 8.3 and in iPhone 6 plus with 8.2": The file start to upload, I get the progress of the upload and after 1 hour more or less the file is uploaded.


- The behavior in "iPhone 5 with 8.1.2": The file start to upload and in one second the file is uploaded with 0 bytes. I get the 200 http ok of the server. I have checked the request and it's ok and the origin path is correct.

NSURLSession upload in background file size limit
 
 
Q