Giter Site home page Giter Site logo

node-file-manager's Introduction

Screen Shot

screenshot

Usage

  npm install -g node-file-manager
  node-file-manager -p 8080 -d /path/to/

Or

  git clone https://github.com/efeiefei/node-file-manager.git
  cd node-file-manager
  npm i
  cd lib
  node --harmony index.js -p 8080 -d /path/to

We can run node-file-manager in terminal directly. We can specify prot add data root dir by -p and -d, default with 5000 and scripts directory.

Then, we can view localhost:8080/ in our browr.

node-file-manager's People

Contributors

efeiefei avatar gasp avatar kwesterfeld2 avatar p2227 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-file-manager's Issues

run with forever or PM2

stupid question but I dont manage to run this with forever I tries to run the sh file in bin with forever but it didn't work

Throws error on invocation

The following error is thown on invocation

npm install -g node-file-manager

node-file-manager node-file-manager -p 8088 -d /

/usr/local/lib/node_modules/node-file-manager/node_modules/koa/node_modules/composition/index.js:111
function* promiseToGenerator(promise) {
^
SyntaxError: Unexpected token *
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/node-file-manager/node_modules/koa/lib/application.js:10:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Change path

Where can you change the path its now ./ but i wil change it

Large file upload fails

Running it from my windows desktop I can upload a file as large as 500MB before it fails but anything bigger than that and I get an error message

screen shot 2016-09-08 at 10 47 53

Running on a raspberry pi 3 with more limited resources it fails with anything larger than about 70MB

Encoding problem with special caracters in directory names

Links inside a directory with umlauts (äöü) are not working.

Example:

mkdir -p umlaut/ä/test
node-file-manager -p 8080 -d $PWD

Now you can navigate to umlaut/ä/ but umlaut/ä/test will return Error: 404Path Not Exists! because the path is URL-encoded twice (%25C3%25A4 instead of %C3%A4)

File Editor?

Is it possible to add a File Editor easily?

Has someone done this before, I'm looking basically for a HTML and/or Javascript Editor.

Unexpected identifier

/usr/local/lib/node_modules/node-file-manager/node_modules/koa/node_modules/composition/index.js:111
function* promiseToGenerator(promise) {
^
SyntaxError: Unexpected token *
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/node-file-manager/node_modules/koa/lib/application.js:10:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Unexpected identifier

/usr/local/lib/node_modules/node-file-manager/node_modules/koa/node_modules/composition/index.js:116
return yield Promise.resolve(promise);
^^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/node-file-manager/node_modules/koa/lib/application.js:10:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Error! 0: null

I have an error when try upload to a subfolder.

´´´
2016-01-23T11:10:11-0500 tools.js:16 (Object.module.exports.handelError) Error: Request aborted
at IncomingMessage.onReqAborted (/home/ubuntu/node_apps/node-file-manager/node_modules/multiparty/index.js:175:17)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at abortIncoming (_http_server.js:280:11)
at Socket.serverSocketCloseListener (_http_server.js:293:5)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12)

Error: Request aborted
at IncomingMessage.onReqAborted (/home/ubuntu/node_apps/node-file-manager/node_modules/multiparty/index.js:175:17)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at abortIncoming (_http_server.js:280:11)
at Socket.serverSocketCloseListener (_http_server.js:293:5)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12)
´´´

The issue is replicated in Windows and Linux.
Used second metod of installation (git clone)

Windows support

I modify something to make it run on Windows

node-file-manager.cmd
"%~dp0\node_modules\node-file-manager\bin\node-file-manager.bat" %*

node_modules\node-file-manager\bin\node-file-manager.bat
%~d0
cd %~dp0../lib
node --harmony index.js %*

I hope it can be used in npm,otherwise i will have to modify it every time after npm install....

Can't open/download certain files

I found that any file with # ? or \ in its name could not be accessed.

I figure, once you can list the filenames, you then should also be able to access them.

Improvements

Hello!

I am using your file manager in order to browse through files and download them from my server.
I would like to suggest just a couple of improvements:

  • Display disk usage
  • Display recursive size for directories (include the size of the files in that directory recursively) instead of always displaying 4KB

Would you prefer that I write a pull request, or would a fork be better?

Thanks
Dany

Deploy to Web App?

Hi,

I absolutely love this application! I was wondering if this concept could be extended to a standalone webapp, just as a place to upload and download files that are stored in a database. How would one go about developing such an app? Thank you in advance!

Best,
Sameer

Integrating node-file-manager with my existing webapp

I am little clueless on how i can integrate this node-file-manager with my existing webapp. So i cloned the project and i was able to run it but what i observed is it doesn't have a module exported which i can use directly in my existing webapp. My app is developed on meanstack.
I don't want to copy paste the code in my project rather use node-file-manager as npm library or something of that sort

Password Protection

Feature Request: Would like simple password protection. Wouldn't mind hardcoding it into the code either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.