I am uploading multiple images to server using URLSession. I am using uploadTask(with: request, fromFile: URL(fileURLWithPath: path))
. While uploading i got below error every time when i am trying to upload more than 10 images. Everything goes fine if I upload less than 10 images at a time. This things happened in device only. It works fine in iOS simulator.
BackgroundSession <17817097-9127-45A7-B9C2-17145F5FD17F> error requesting a NSURLSessionUploadTask from background transfer daemon: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 65435 named com.apple.nsurlsessiond was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service with pid 65435 named com.apple.nsurlsessiond was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.