我想将Amazon S3文件系统添加到我的Yii2 Elfinder插件中。所以我将这些插件安装到我的应用程序:
'components' => [
// ...
'fs' => [
'class' => 'common\components\AwsS3Filesystem',
'key' => '{MYAMAZONKEY}',
'secret' => '{MYAMAZONSECRET}',
'bucket' => '{MYBUCKET}',
'region' => 'us-east-1',
],
// ...
],
然后我添加了这个配置:
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\PathController',
'access' => ['@'],
'disabledCommands' => ['netmount'],
'root' => [
'class' => 'mihaildev\elfinder\flysystem\Volume',
'component' => 'fs'
],
]
],
然后是我的elfinder配置:
Invalid backend configuration.
Readable volumes not available.
{"error":["errConf","errNoVolumes"],"debug":["Driver \"elFinderVolumeFlysystem\" does not exist"]}
毕竟,当我打开elfinder窗口时,会发生以下错误:
{{1}}
实际上我遵循了这个tutorial,但它没有帮助。我无法弄清楚问题是什么。任何帮助表示赞赏。