title: Uploading an image from UIImagePickerController using Alamofire
body: <p>I am trying to upload an image to a server using Alamofire. When I use the following everything works correctly with a test image saved in the bundle.</p>
  
  <pre><code>    func uploadImage()
  {
      let fileURL = NSBundle.mainBundle().URLForResource("Uploadtest", withExtension: "jpg")
      Alamofire.upload(.PUT, url + "/api/Image" + id, file: fileURL!).responseString {
          _, _, result in
          print("Success: \(result.isSuccess)")
          print("Response String: \(result.value)")
      }
  }
  </code></pre>
  
  <p>However, I wish to upload an image from UIImagePickerController. The Alamofire upload method takes a file url as a parameter, while I get an instance of UIImage back from the UIImagePickerController. Should I save this image locally to documents or similar and then get a url to that location to pass in to the Alamofire upload method? is this possible or is there another way I missing?</p>