Closed (duplicate)
Project:
elFinder file manager
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2012 at 16:32 UTC
Updated:
25 Dec 2018 at 09:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ph0enix commentedHi. Currently elFinder don't supporting S3 and there are no plans for this feature in near future. But you can donate S3 driver development to get it available soon.
Comment #2
ph0enix commentedComment #3
csunny commentedHi. I would like to made a module to support OSS storage(a service like S3). Is it possible to use hooks this module provides? I have checked the elfinder_connector function and it seems it let you hook on elfinder_connector_config. So this is where to make things happen?
Cheers
Comment #4
csunny commentedComment #5
ph0enix commentedYes, you can use this. See built-in submodules using elfinder hooks.
Comment #6
jslatts commentedI have S3 integration working with elFinder using the elFinder S3 driver from whs here: https://github.com/whs/elFinder-driver.
It has been modified and integrated to work with the latest master branch of elFinder (not RC1). It depends on the latest version of the AWSSDK and I had to add quite a few S3 configuration values to support the driver.
Not sure if this can/should go into this module, but it may be of use to others.
Comment #7
jslatts commentedComment #8
ph0enix commentedComment #9
ph0enix commentedComment #10
ph0enix commentedComment #11
ph0enix commented@jslatts, this is a great news, thank you!
But unfortunately I have failed to get this work:
Fatal error: Call to a member function getTimestamp() on a non-object in ****/sites/all/modules/elfinder/inc/elfinder.s3.driver.inc on line 75
After replacing that line to:
I see only Public Files root, no S3 bucket contents. The awssdk2 library installed and loaded. The bucket that I used to test is accessible from desktop S3 browser (used this one http://s3browser.com/).
Probably there are issues with root folder stat generation.
Comment #12
ph0enix commentedComment #13
ph0enix commentedComment #14
jslatts commentedCouple of thoughts:
1. Make sure the directory you specified exists in the bucket (images)
2. Remove the leading and trailing slashes on the directory.
Comment #15
mcrittenden commentedUpdated patch with a tiny fix for creating directories.
Comment #16
mcrittenden commentedPrevious patch was malformed, here's a 2nd attempt.
Comment #17
mcrittenden commentedHere's another update that drastically improves performance when loading a directory, like on initial load, because it fetches metadata about all files in batch instead of 1 by 1 by 1.
Comment #18
mcrittenden commentedUpdate to #17 which fixes a couple PHP 5.5 warnings.
Comment #19
mcrittenden commentedNew patch attached which makes directory loading much quicker by avoiding the per-file call to fetch its metadata.
Comment #20
jpoirierpinto commentedHere's a version that uses HTTPS.
Comment #21
mcrittenden commentedSeems like the patch in #20 had a whitespace change that is causing the patch to fail to apply for some reason. Here's another attempt at that one.
Comment #22
nwom commentedComment #23
sksshed commentedI may be being dumb, but I'm unable to get this patch to work. The patch applied successfully and I see the driver options but whatever I select or fill in, when ever I browse to https://mysite.com/elfinder I receive the error "Invalid backend response. Error occurred on the server side. HTTP error 500" There are no errors in "recent log messages". Our S3 bucket is in EU-west-1 and is encrypted, not sure if this makes a difference. Receive the same error for local file system too. Any help appreciated.
Comment #24
ph0enix commentedMoved #31