Uploading files in NodeJs (single/multiple)
This repo demonstrates how to upload files to a NodeJS express server.
Checklist:
- Single file upload
✔ - Multi file upload
✔ - Limiting file-size to be uploaded
✔ - Supporting mimetypes
✔ - Using temporary path, instead of memory
✔ - Creating directories dynamically
✔
To start setting up the project
Step 1: Clone the repo
git clone https://github.com/trulymittal/nodejs-file-upload.git
Step 2: cd into the cloned repo and run:
npm install
Step 3(optional): Incase nodemon NOT installed globally on system.
npm install -g nodemon
Step 4: Start the repo by
npm start
Author
Contribute
You can fork this repo and send me a PR.
License
This project is licensed under the MIT License.