Код: Выделить всё
Aws\S3\Exception\S3Exception: Error executing "PutBucketLifecycleConfiguration" on "http://ceph:8000/testcachebucket?lifecycle"; AWS HTTP error: Client error: `PUT http://ceph:8000/testcachebucket?lifecycle` resulted in a `400 Bad Request` response:
InvalidRequest
InvalidRequest (client): Missing required header for this request: Content-MD5 -
Код: Выделить всё
InvalidRequest
Согласно документации AWS, заголовок Content-MD5 требуется при выполнении запроса API REST. Тем не менее, документация PHP SDK не объясняет, как ее включить. >
Код: Выделить всё
$this->s3Client->PutBucketLifecycleConfiguration([
'Bucket' => $bucket,
'LifecycleConfiguration' => [
'Rules' => $opts,
],
]);
Подробнее здесь: https://stackoverflow.com/questions/794 ... figuration