title: How to work with files through FOSRestBundle
body: <p>I'm using FOS Rest Bundle to create a REST API where I'm suppose to be able to handle file upload. The problem is I don't know how to send and receive the files. My only experience with file transfer is with $_FILES of PHP and it does not help me a lot.</p>
  
  <p>I though about encoding in Base64 and sending the file in JSON but since the file can be quite large, it's not a viable solution. As of now, I'm thinking about doing a request to send the metadata with json and another request for sending the file. I did not find any example on how to handle the file transfer as it seems everyone but me knows how it works.</p>
  
  <p>I'm also quite new to symfony2 but I understand the basic concepts. </p>