public function getFileUrl($remotePath) { $response = $this->_s3->update_object($this->_bucket, $remotePath, array('acl' => AmazonS3::ACL_PUBLIC)); if (!$response->isOK()) { return false; } else { return $response->header['_info']['url']; } }