title: File from $_POST and Amazon S3
body: <p>i have problem with amazon s3 service and a web service writed with php.
  This WS receive from $_POST a file base64encoded. I need to take this "string" and save to Amazon S3 bucket.
  I didn't find a right solution for do that, and after a week of work I'm looking for help here. </p>
  
  <pre><code>//$file = 'kdK9IWUAAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd'
  $file = $_POST['some_file'];
  $opt = array(
        'fileUpload' =&gt; base64_decode($file),
        'acl' =&gt; AmazonS3::ACL_PUBLIC
      );
  $s3 = new AmazonS3(AWS_KEY, AWS_SECRET_KEY);
  $response = $s3-&gt;create_object($bucket, $filename, $opt);
  </code></pre>
  
  <p>Thanks            </p>