title: How to make alamofire post request with "form-data" parameters
body: <p>How to make post request in swift using alamofire with parameters as below(screenshot from postman)image is file-type, title is text-type
  <a href="https://i.stack.imgur.com/tTCdw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tTCdw.png" alt="screen shot from postman"></a></p>
  
  <p>I'm trying sth like this:</p>
  
  <pre><code>let headers = [
          "Content-Type": "application/form-data",
          "X-App-Token": user.token!
      ]
      Alamofire.upload(multipartFormData:{ multipartFormData in
          multipartFormData.append(UIImagePNGRepresentation(imgToSend)!, withName: "image")
          multipartFormData.append(titleToSend.data(using: .utf8)!, withName: "title")},
                       usingThreshold:UInt64.init(),
                       to: url!,
                       method:.post,
                       headers:headers,
                       encodingCompletion: { encodingResult in
                          switch encodingResult {
                          case .success(let upload, _, _):
                              upload.responseJSON { response in
                                  debugPrint(response)
                              }
                          case .failure(let encodingError):
                              print(encodingError)
                          }
      })
  </code></pre>
  
  <p>but I got error:
  <strong>[BoringSSL] Function boringssl_session_errorlog: line 2868 [boringssl_session_write] SSL_ERROR_SYSCALL(5): operation failed externally to the library</strong></p>
  
  <p>and (this is weird) debugger goes into .success but when I log response there is error from api</p>