SHLo / file-upload

file server using mongodb grid fs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File-upload

A file server using mongodb gridfs

Installation

$ git clone https://github.com/SHLo/file-upload.git
$ cd file-upload
$ npm install

Usage

$ node index.js [server port]

If 'server port' parameter is missed, default server port will be 3000.

  1. Edit and check the db config in db-config.js, make sure mongod is running
  2. Use browser to access http://localhost:${server port}
  3. Upload local file to server by the form on web page
  4. Uploaded files will be keep on the web page which are downloadable by clicking the 'download' links

About

file server using mongodb grid fs


Languages

Language:JavaScript 74.8%Language:HTML 25.2%