Skip to content

Instantly share code, notes, and snippets.

View hamaguchi's full-sized avatar

xxxx hamaguchi

  • Yokohama, Japan
View GitHub Profile
$s3 = new \Aws\S3\S3Client([
'version' => 'latest',
'region' => $region
]);
date_default_timezone_set("Asia/Tokyo");
// オリジナルファイル保存
$result = $s3->putObject(
array(
s4cmd -c 15 -r --API-ACL=public-read --API-ContentType=image/jpeg put . s3://hoge/