title: Passing a file to POST request in Play Framework
body: <p>We're using Play Framework 2.0. to serve REST requests. We would like to be able to pass a file to a POST request and be able to process it in our Contoller.</p>
  
  <p>I ended up with the following:</p>
  
  <pre><code>GET /customer/:id/photos    controllers.PhotosController.addPhoto(id: Integer, page: String)
  </code></pre>
  
  <p>I tried to get to the content of the file in the Controller code but without luck.</p>
  
  <p>I was sending the POST request in the following way:</p>
  
  <pre><code>curl.exe -X GET localhost:9000/customer/23/photos?page=Sun.jpg
  </code></pre>
  
  <p>Any ideas how to handle this case?</p>