title: Ambiguous reference to member 'upload(_:_:headers:file:)'
body: <p>The code below works perfectly in Swift 3 to upload an image file as multipart. However, I haven't been able to get anything similar to work in Swift 2.2. If I try to use this in Swift 2.2, I get the message <code>Ambiguous reference to member 'upload(_:_:headers:file:)'</code></p>
  
  <p>Is there a way to accomplish the same thing in Swift 2.2? I have found several related questions, but have only found solutions that work in Swift 3.</p>
  
  <pre><code>func submitFile(entryId: Int, entryDetailValue: String, fieldId: Int, fieldType: String) {
  
      let parameters = [
          "entryId": "\(entryId)",
          "entryDetail": entryDetailValue,
          "fieldId": "\(fieldId)",
          "type": fieldType
      ]
  
      print(parameters)
  
      Alamofire.upload(multipartFormData: { (multipartFormData) in
          multipartFormData.append(UIImageJPEGRepresentation(self.imageView.image!, 1)!, withName: "file", fileName: "swift_file.jpeg", mimeType: "image/jpeg")
          for (key, value) in parameters {
              multipartFormData.append(value.data(using: String.Encoding.utf8)!, withName: key)
          }
          }, to:"&lt;my endpoint url&gt;")
      { (result) in
          switch result {
          case .success(let upload, _, _):
  
              upload.uploadProgress(closure: { (progress) in
                  //Print progress
                  print(progress)
              })
  
              upload.responseData { response in
                  print(response.result)
              }
  
          case .failure(let error):
              print(error)
          }
      }
  
  }
  </code></pre>