title: How to serialize object with file property
body: <p>I am building a small catalog on the web, that details housing projects and enables users to download documents about them.</p>
  
  <p>My data model is simple : a project owns a few inner properties and a collection of documents. A document owns a few properties itself and a file (the one that will be downloaded by the user).</p>
  
  <p>There is also a back-office, where admins can add/delete/update projects. And this is where I struggle to do what I want.</p>
  
  <p>On the javascript side, I am building objects representing projects and I would like to send them to the php side to perform the database tasks. Is there a way to serialize a whole projet with its attached documents (inculding the files) in order to send it from javascript to php ?</p>