title: How do I send POST Json and Image to php alamofire
body: <p>I am able to send post data as json fine from swift using this code:</p>
  
  <pre><code>private func alamoFireAjax(url: String, parameters: Parameters, callback: @escaping (DataResponse&lt;Any&gt;) -&gt; Void) {
      Alamofire.request(url, method: .post, parameters: parameters, encoding: JSONEncoding.default).responseJSON(completionHandler: callback)
  }
  </code></pre>
  
  <p>But I want to send a image along with the data that this function is sending. How do I do that in alamofire, or do I need a different framework.</p>