e56cc5a348fcd143936c0c058c62a71a6699bd8e
nodejs-fm
A simple file manager for managing files on a remote fs using Node.
Dependencies: express
body-parser
@fortawesome/fontawesome-free
jquery
Dependencies(testing): chai
mocha
chai-http
Checklist
- Folder Traversal
- File Downloads
- Upload
Why
Personal requirement. Because of this, only renaming is available, and uploading/downloading. No authentication, as it is based on a small local server, and the major way of accessing it, is ssh.
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
Languages
JavaScript
67.9%
CSS
16.7%
HTML
15.4%