Rich Filemanager - Node Connector
This package is a NodeJS connector for Rich File Manager. It is implemented as an api, so you can use it on a seperate server from your front-end.
Installation
npm install rich-filemanager-node --save
Usage
This connector is implemented as a middleware for Expressjs. The code sample is an express app that implements the connector
const express = ;const filemanager = ;const config = "/path/to/filemanager.config.json"; //Change this to the actual location of your config filevar app = ; //Filemanager routeapp;// '/filemanager' is the connector url. // Don't forget to set it in the api.connectorUrl of `filemanager.config.json` for the frontend //Listen for requestsconst port = processenvPORT || 9000;app
Note: config
can be an object or a file path
Important
When using this connector in your project, the filemanager route must come before any body-parsing ( multer, body-parser, busboy, etc ) routes;
API functions not yet implemented
- seekfolder
- summarize
- extract