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.gitStep 2: cd into the cloned repo and run:
npm installStep 3(optional): Incase nodemon NOT installed globally on system.
npm install -g nodemonStep 4: Start the repo by
npm startYou can fork this repo and send me a PR.
This project is licensed under the MIT License.