Вы пробовали с этим:
Alamofire.upload(
multipartFormData: { multipartFormData in
//your implementation
},
to: "http://example.com",
encodingCompletion: { encodingResult in
switch encodingResult {
case .success(let upload, _, _):
upload.responseJSON { response in
print(response)
}
upload.uploadProgress { progress in
print(progress.fractionCompleted)
}
case .failure(let encodingError):
print(encodingError)
}
}
)