I would like to pass a nil value i.e., optional to one of the parameter value. And it must proceed with the nil value in the Alamofire Post request .It woul
I think your simplest answer would be to add "profile_picture" as a second step.
"profile_picture"
var parameters = [ "first_name": "XXXXX", "email" : "1234@gmail.com", "password" : "password"] if let base64String = base64String where !base64String.isEmpty { parameters["profile_picture"] = base64String }