whs-junkyard / elFinder-driver

*unmaintained* Drivers for elFinder
11 stars 5 forks source link

elFinder with s3 bucket connection error #13

Open vijayshankar037 opened 8 years ago

vijayshankar037 commented 8 years ago

I'm using elfinder to connect my s3 bucket with following configuration:


<?php
error_reporting(E_ALL); // Set E_ALL for debuging

include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderConnector.class.php';
include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinder.class.php';
include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderVolumeDriver.class.php';
include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderVolumeS3.class.php';

$elfinder = new elFinder(array(
    'debug' => true,
    'roots' => array(
        array(
            'driver' => 'S3',
            'path' => 'memorizable-irl.s3-website-eu-west-1.amazonaws.com',
            'URL' => 'http://memorizable-irl.s3-website-eu-west-1.amazonaws.com/',
            "s3" => array(
                "key" => "xyz",
                "secret" => "xyz",
                "region" => "us-west-2"
            ),
            "bucket" => "memorizable-irl",
            "acl" => "private"
        )
    )
));

$connector = new elFinderConnector($elfinder);
$connector->run();

?>

Error Alert Invalid backend configuration. Readable volumes not available.

Response

{"error":["errConf","errNoVolumes"],"debug":["Driver \"elFinderVolumeS3\" : Required options undefined."]}

Can any suggest me, is there anything wrong in my configuration ?

vijayshankar037 commented 8 years ago

Or i need to do some configuration at AWS bucket ?