{"action":"created","issue":{"url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/153","labels_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/153/comments","events_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/153/events","html_url":"https://github.com/helios-ag/FMElfinderBundle/issues/153","id":91278047,"number":153,"title":"S3 Driver","user":{"login":"bonswouar","id":615053,"avatar_url":"https://avatars.githubusercontent.com/u/615053?v=3","gravatar_id":"","url":"https://api.github.com/users/bonswouar","html_url":"https://github.com/bonswouar","followers_url":"https://api.github.com/users/bonswouar/followers","following_url":"https://api.github.com/users/bonswouar/following{/other_user}","gists_url":"https://api.github.com/users/bonswouar/gists{/gist_id}","starred_url":"https://api.github.com/users/bonswouar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonswouar/subscriptions","organizations_url":"https://api.github.com/users/bonswouar/orgs","repos_url":"https://api.github.com/users/bonswouar/repos","events_url":"https://api.github.com/users/bonswouar/events{/privacy}","received_events_url":"https://api.github.com/users/bonswouar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-26T15:22:24Z","updated_at":"2015-07-09T17:46:01Z","closed_at":null,"body":"***Don't know why #120 has been closed, those S3 driver problems should be fixed, no ?***\r\n\r\nI was first using the Flysystem config for S3 :\r\n```yml\r\n                        driver: Flysystem\r\n                        url: %aws.content.url%\r\n                        flysystem:\r\n                            type: aws_s3_v2\r\n                            options:\r\n                                aws_s3_v2:\r\n                                    key: %aws.key%\r\n                                    secret: %aws.secret%\r\n                                    region: %aws.region%\r\n                                    bucket_name: %aws.content.bucket%\r\n```\r\nThat seemed to work fine.. But then I noticed **folders aren't visible !** (though creating them work, but they won't be displayed in ElFinder explorer)\r\n\r\n---\r\n\r\nSo I tried using the \"native\" elFinder S3 driver, here is the (apparently) correct config :\r\n```yml\r\n                        driver: S3\r\n                        s3_settings:\r\n                            access_key: %aws.key%\r\n                            secret_key: %aws.secret%\r\n                            bucket: %aws.content.bucket%\r\n                            tmp_path: /tmp\r\n```\r\n\r\n- I first had, as mentioned in the other issue :\r\n> E_COMPILE_ERROR: Declaration of FM\\ElFinderPHP\\Driver\\ElFinderVolumeS3::_save() must be compatible with FM\\ElFinderPHP\\Driver\\ElFinderVolumeDriver::_save($fp, $dir, $name, $stat) in /home/www/git/website.com/vendor/helios-ag/fm-elfinder-php-connector/src/Driver/ElFinderVolumeS3.php line 15\r\n\r\n- If I fix that I've got :\r\n> Error: Class 'FM\\ElFinderPHP\\Driver\\SoapClient' not found in /home/www/git/website.com/vendor/helios-ag/fm-elfinder-php-connector/src/Driver/ElFinderVolumeS3.php line 662\r\n\r\n- If I fix that I've got :\r\n> {\"error\":[\"errConf\",\"errNoVolumes\"],\"debug\":[\"Driver \\\"FM\\\\ElFinderPHP\\\\Driver\\\\ElFinderVolumeS3\\\" : Path undefined.\"]}\r\n\r\n- I assumed this path is the \"tmp_path\", so I fixed that and finally I've got a SOAP error :\r\n> Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests. \r\n*in /home/www/git/website.com/vendor/helios-ag/fm-elfinder-php-connector/src/Driver/ElFinderVolumeS3.php at line 710*\r\n\r\nIs anybody able to properly use this Bundle with S3 ? Any help would be appreciated.\r\n\r\n**=> Update : Second part deprecated in `dev-master`, now it's using the AWS SDK instead of the SOAP client.**\r\n"},"comment":{"url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/comments/120084199","html_url":"https://github.com/helios-ag/FMElfinderBundle/issues/153#issuecomment-120084199","issue_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/153","id":120084199,"user":{"login":"fousheezy","id":708458,"avatar_url":"https://avatars.githubusercontent.com/u/708458?v=3","gravatar_id":"","url":"https://api.github.com/users/fousheezy","html_url":"https://github.com/fousheezy","followers_url":"https://api.github.com/users/fousheezy/followers","following_url":"https://api.github.com/users/fousheezy/following{/other_user}","gists_url":"https://api.github.com/users/fousheezy/gists{/gist_id}","starred_url":"https://api.github.com/users/fousheezy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fousheezy/subscriptions","organizations_url":"https://api.github.com/users/fousheezy/orgs","repos_url":"https://api.github.com/users/fousheezy/repos","events_url":"https://api.github.com/users/fousheezy/events{/privacy}","received_events_url":"https://api.github.com/users/fousheezy/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T17:46:01Z","updated_at":"2015-07-09T17:46:01Z","body":"presently 2.8.12"}}