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
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