Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

elFinder with s3 bucket connection error #13

Open
vijayshankar037 opened this issue Apr 22, 2016 · 1 comment
Open

elFinder with s3 bucket connection error #13

vijayshankar037 opened this issue Apr 22, 2016 · 1 comment

Comments

@vijayshankar037
Copy link

vijayshankar037 commented Apr 22, 2016

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
Copy link
Author

Or i need to do some configuration at AWS bucket ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant