Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elfinder gridfs adapter 500 internal server error #56

Open
dipenpatel235 opened this issue Mar 21, 2017 · 0 comments
Open

elfinder gridfs adapter 500 internal server error #56

dipenpatel235 opened this issue Mar 21, 2017 · 0 comments

Comments

@dipenpatel235
Copy link

dipenpatel235 commented Mar 21, 2017

hello..
i am trying to connect mongo gridfs adapter with elfinder.
so i have did below things but getting error "500 internal server error"

installed https://github.com/Studio-42/elFinder
installed generic flysystem driver https://github.com/barryvdh/elfinder-flysystem-driver
installed https://flysystem.thephpleague.com/adapter/gridfs/

After that all successfully installed

i have write below array in "connector.minimal.php" file.

elFinder::$netDrivers['gridfs'] = 'GridFS'; array( 'driver' => 'Flysystem', // driver for accessing file system (REQUIRED) 'adapter' => new GridFSAdapter($gridFs) )

after that created New File inside php dir "elFinderFlysystemGridFS.class.php"

use League\Flysystem\GridFS\GridFSAdapter; use League\Flysystem\Filesystem; $mongoClient = new MongoClient(); $gridFs = $mongoClient->selectDB('mydatabasename')->getGridFS(); $adapter = new GridFSAdapter($gridFs); $filesystem = new Filesystem($adapter);
after that in autoload.php file added below line

'elFinderVolumeGridFS' => ELFINDER_PHP_ROOT_PATH . '/elFinderFlysystemGridFS.connector.php',

So now getting error 500 internal server error.

so please let me know if anything is wrong...

Thanks

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

No branches or pull requests

1 participant