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 ✔
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
You can fork this repo and send me a PR.
This project is licensed under the MIT License.