diff --git a/backend/php-s3/index.php b/backend/php-s3/index.php index 71877ca..1839320 100644 --- a/backend/php-s3/index.php +++ b/backend/php-s3/index.php @@ -1,7 +1,8 @@ putObject($bucket, $path.'/'.$keyword, $data, array('Content-Type' => 'text/xml')); - header("HTTP/1.0 201 Created"); + $client->putObject($bucket, $path.'/'.$keyword, $data, array('Content-Type' => 'text/xml')); + header("HTTP/1.0 201 Created"); break; case "load": - $keyword = (isset($_GET["keyword"]) ? $_GET["keyword"] : ""); + $keyword = (isset($_GET["keyword"]) ? $_GET["keyword"] : ""); $file = $client->getObject($bucket, $path.'/'.$keyword); if ($file->body) { header("Content-type: text/xml");