Post not yet marked as solved
Post marked as unsolved with 10 replies, 1,752 views
We upload videos form our application, the video upload starts in the foreground but the requirement is to support upload in the background as well. Followed the all steps that I gathered and understood reading in various article to support the upload in background as well. We have video content as data in the request - create an upload task which is delegate based. Then we write the whole request content into a file and pass to the upload task to upload.
Use background session configuration.
Now, my problem is sometimes I see the progress of upload going upto 100% then re-starting. On debugging further found that the timeout was happening on the server. And based on default timeout 60s it tries to re-start. How do I change the timeout value, setting the timeout interval on session does not seem to work. It works only it set to less than 60, trying to set to great than 60 doesn’t work.
I tried setting both timeoutIntervalForRequest
And timeoutIntervalForResource