I’m trying to upload a video file through service using NSURLSessionUploadTask
. But getting an issue saying
Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost.”
But I can able to upload image file without an issue. what would be the problem?
Tried both in phone and simulator and also did reset simulator settings.
Stop the project! and Quit simulator and restart it! Then also it creates issue then check your internet connection that it is working proper or not. Because some time bad internet connectivity also creates that problem!
Once check your server's timeout
also and data limit also!