использую
https://github.com/yii2tech/file-storage
но конфиг не работает
'fileStorage' => [
'class' => \common\components\storage\S3Storage::class,
'amazonS3Config' => [
'endpoints' => [
'*/*' => [
'endpoint' => '',
],
'us-east-1/*' => [
'endpoint' => '',
],
],
'regions' => [
'us-east-1' => [
'http' => true,
'https' => true,
'hostname' => '',
],
],
'key' => 'minio',
'secret' => 'minio-s3',
'base_url' => 'http://minio-office.asdasdasd-asdasd.com/minio/',
'use_path_style_endpoint' => true,
'region' => 'us-east-1',
'version' => 'latest',
'credentials' => [
'key' => 'minio',
'secret' => 'minio-secret',
],
],
'buckets' => [
'temp-files' => [
'fileSubDirTemplate' => '{^name}/{^^name}',
],
'image-files' => [
'fileSubDirTemplate' => '{ext}/{^name}/{^^name}',
],
'static-files' => [
'fileSubDirTemplate' => '{ext}/{^name}/{^^name}',
],
],
],