/file-upload

file server using mongodb grid fs

Primary LanguageJavaScript

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