Any Easy to extend Web-based File Manager for node.js?

Eric Fong picture Eric Fong · Oct 6, 2010 · Viewed 12.6k times · Source

Want to find one and modify that to read, write file on mongoDB gridfs store

Answer

coderaiser picture coderaiser · Dec 26, 2015

You could try Cloud Commander node.js-based orthodox file manager. It could be used as middleware for express this way:

var http        = require('http'),
    cloudcmd    = require('cloudcmd'),
    express     = require('express'),
    io          = require('socket.io'),
    app         = express(),

    PORT        = 1337,

    server,
    socket;

server = http.createServer(app);
socket = io.listen(server);

app.use(cloudcmd({
    socket: socket,     /* used by Config, Edit (optional) and Console (required)   */
    config: {           /* config data (optional)                                   */
        prefix: '/cloudcmd', /* base URL or function which returns base URL (optional)   */
    }
}));

server.listen(PORT);

When you need a file tree you could try this angular/node based example.