barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

s3 connection issue #324

Open Ardhendu100 opened 1 year ago

Ardhendu100 commented 1 year ago

'dir' => ['storage'],

'disks' => [
    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
        'alias' => 'S3 Storage',
        'URL' => env('AWS_URL', null),
    ],
],

'route' => [
    'prefix' => 'elfinder',
    'middleware' => ['web', 'auth'], // Set to null to disable middleware filter
],

'access' => 'Barryvdh\Elfinder\Elfinder::checkAccess',
'roots' => [
    [
        'driver' => 'Flysystem',
        'path' => '/',
        'URL' => env('AWS_URL', null),
        'filesystem' => 's3',
        'alias' => 'S3 Storage',
        'uploadAllow' => ['image'],
        'uploadDeny' => ['all'],
        'uploadOrder' => ['deny', 'allow'],
        'accessControl' => 'Barryvdh\Elfinder\Elfinder::checkAccess',
    ],
],

` this is config/elfinder.php , I am getting error "Invalid backend configuration. Readable volumes not available."