title: Permissions denied for image upload
body: <p>I'm trying to receive an image from a user and then upload it to my Amazon S3 account, but I'm getting the error <code>Warning: move_uploaded_file(/items) [function.move-uploaded-file]: failed to open stream: Permission denied</code> from Zend Framework. I set the permissions on the folder to 777 through FTP but I'm still getting the error. Here's the code producing the error, on the off chance that it makes a difference. The error is coming up on the receive, I would assume. How can I get rid of this error?</p>
  
  <pre><code>$upload = new Zend_File_Transfer();
          $upload-&gt;addValidator('ImageSize', false, array('minwidth'  =&gt; 100,
                                                    'maxwidth'  =&gt; 1000,
                                                    'minheight' =&gt; 100,
                                                    'maxheight' =&gt; 1000), 'image')
           -&gt;addValidator('Extension', false, 'jpg')
           -&gt;addValidator('Count', false, array('min'=&gt;0, 'max'=&gt;2));
  
  if($upload-&gt;isUploaded('image')){ //Pic was uploaded
                  if($upload-&gt;isValid('image')){ //Pic is valid
                      echo "Pic provided is valid.";
                      $upload-&gt;addFilter('Rename',array('target'=&gt;"/items/{$item_id}_nla.jpg",'overwrite'=&gt;true));
                      $upload-&gt;receive();
                      $pic = "/items/{$item_id}_nla.jpg";
                      $s3-&gt;putObject("media.completeset.com/images/items/{$item_id}_nla.jpg", $pic,
                                      array(Zend_Service_Amazon_S3::S3_ACL_HEADER =&gt; Zend_Service_Amazon_S3::S3_ACL_PUBLIC_READ,
                                            Zend_Service_Amazon_S3::S3_CONTENT_TYPE_HEADER =&gt; "image/jpeg"));
                      echo "Pic is uploaded.";
                  }
                  echo "Pic is invalid.";
              }
  </code></pre>