/** * {@inheritdoc} */ protected function _write($path, $data, $public) { $acl = $public ? S3::ACL_PUBLIC_READ : S3::ACL_PRIVATE; $options = array('Content-Type' => $this->_s3->__getMimeType($path)); return $this->_s3->putObject($data, $this->_params->bucket, $path, $acl, array(), $options); }