title: CakePHP, Amazon Elasticbeanstalk and S3
body: <p>I'm planning to move 3 CakePHP 1.3.x applications from an ol' VM to <a href="http://aws.amazon.com/fr/elasticbeanstalk/" rel="nofollow">AWS elasticBeanstalk</a>. </p>
  
  <p>As AWS EB is stateless, customers pictures/pdf have to be moved to S3 (files not versionned, and not meant to).</p>
  
  <p>Working with CakePHP &amp; S3 is ok, now I have to manage how files will be uploaded. I want to avoid transferring file from browser to EB, and next to S3 <strong>BUT</strong> each file should be uploaded to S3 only when the model is validated, and the model can't validate until he "knows" about the file (size, extension, etc).</p>
  
  <p>As a mingy developer, I'm willing to know if there's a solution to that problem!</p>