Files
nodejs-fm/README.md
2019-05-24 17:55:13 +05:30

1.1 KiB

nodejs-fm

Build Status

A simple file manager for managing files on a remote fs using Node.

Dependencies: express body-parser @fortawesome/fontawesome-free chai mocha chai-http jquery requests sqlite3

Checklist

  • Folder Traversal
  • File Downloads
  • Upload
  • Auth

Usage

Use settings.json and point it to a valid address, and select a required port. Default 8080

For the backend, the jsons have this form

Requests:

{
    'loc': "<valid location>"
}

Responses (Only for directory traversals):

{
    'loc': "<location>",
    'back': "<location|null>",
    'contents':[
        {
            'name':"<filename>",
            'path':"<location>",
            'isDir': "<true|false>"
        },
        ...
    ]
}

Credit

  • Samuel Thornton: Material Design Box Shadows
  • Chris Pratt: File Download via Ajax
  • StackOverflow: Troubleshooting errors
  • Google: All knowing