i tried with this code but not work
let manager = Alamofire.SessionManager.default
manager.session.configuration.timeoutIntervalForRequest = 60
manager.upload( ....
any other ways or what's wrong with my code
EDIT : For request upload image
i tried with this code but not work
let manager = Alamofire.SessionManager.default
manager.session.configuration.timeoutIntervalForRequest = 60
manager.upload( ....
any other ways or what's wrong with my code
EDIT : For request upload image
Try this
let alamoFireManager = Alamofire.SessionManager.default
let configuration = URLSessionConfiguration.background(withIdentifier: "com.url.background")
configuration.timeoutIntervalForRequest = TimeInterval(requestTimeOutInterval)
alamoFireManager = Alamofire.SessionManager(configuration: configuration)