whs-junkyard / elFinder-driver

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

Can't Connect to Backend #7

Closed nomadicjosh closed 10 years ago

nomadicjosh commented 10 years ago

I've implemented amazon s3 class but I am getting the error that it cannot connect in the backend. I did not see any examples for path or url, so can you tell me if what I have below is correct? Thanks.

$opts = array( // 'debug' => true, 'roots' => array( array( 'driver' => 'S3', 'path' => 'http://testbucket.s3.amazonaws.com/', 'URL' => 'http://testbucket.s3.amazonaws.com/', "s3" => array( "key" => "hidden", "secret" => "hidden", "region" => "us-east-1" ), "bucket" => "testbucket", "acl" => "private" ), ) );

whs commented 10 years ago

Path should be a path like dirname. Due to a design flaw in elFinder, root (i.e. / or empty) path cannot be used (#2).

URL is just the public accessible URL of specified path (eg. https://s3-ap-southeast-1.amazonaws.com/bucketname/ or the subdomain version https://bucketname.s3-ap-southeast-1.amazonaws.com/).

nomadicjosh commented 10 years ago

Thank you.