title: Symfony2 FOSUserBundle File Upload (Profile Pic) Tips?
body: <p>I'm about to embark on trying to add a profile picture field to my User entity in a symfony2 project I'm working on which uses <code>FOSUserBundle</code>. I have a feeling that this should be really simple, however, I've not found any useful documentation explaining how to do it. </p>
  
  <p>At the moment, I'm planning on adding an unmapped field to my form object (which I've extended from the generic <code>ProfileEdit</code> form) which takes an uploaded file. I'll then create an event listener for either <code>FOSUserEvents::PROFILE_EDIT_SUCCESS</code> or <code>FOSUserEvents::PROFILE_EDIT_COMPLETED</code>, which will take the form, handle the file upload and persist the path of the uploaded file (with methods to get the public URL and absolute path) to my User object, before adding a message to the Response flashbag to say it was either successful or unsuccessful. Is this really the correct/best practice way to do this? Or am I missing something? Is this functionality really not included yet in the FOSUserBundle? If so I've not found the docs for it, but would love it if it was....</p>
  
  <p>Any help / tips / voodoo advice would be so greatly appreciated!</p>