Dennis Coorn, Applicatie ontwikkelaar, IPPZ B.V
IPPZ develops an online platform for patients and practitioners in mental healthcare, child welfare and general healthcare. Patients can login to a secure environment and work on their treatment assignments, daily recordings and they stay in touch with their therapist through a mailbox. We therefore have to deal with very privacy-sensitive data. We recently spent a few iterations working on a new mailbox feature that provides transferring files by uploading attachments. We have chosen for GridFS to ensure that the files are being uploaded fast, are easily manageable and above all stored safely. The MongoDB GridFS specification offers you the ability to save files in MongoDB, no matter how large. In this presentation I will explain how you can save an uploaded file directly to GridFS with Symfony2, and how you can combine the ODM document seamlessly with an ORM entity.