title: Swift Alamofire send array of images together with other parameters
body: <p>I am trying to upload images together with other post parameters using Alamofire.</p>
  
  <p>Looking at the doc I see:</p>
  
  <pre><code>Alamofire.upload(
      .POST,
      "https://httpbin.org/post",
      multipartFormData: { multipartFormData in
          multipartFormData.appendBodyPart(fileURL: unicornImageURL, name: "unicorn")
          multipartFormData.appendBodyPart(fileURL: rainbowImageURL, name: "rainbow")
      },
      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 how can I upload an array of images like:</p>
  
  <pre><code>var arrayOfImages: [UIImage] = [some images...]
  </code></pre>
  
  <p>together with other post data:</p>
  
  <pre><code>let parameters: [String: AnyObject] = [
              "id": id,
              "title": title,
              "desc": description,
              "images[]": arrayOfImages
          ]
  </code></pre>