An example of how to upload multiple images or video locally with Node.js and Multer. If the app is render on the mobile device browser, photo or video can be capture using device's camer to upload the photot or video.
1.0.0
Install the dependencies
$ npm installTo serve in the browser
$ npm startchange number of images allowed to upload by changing number in app.js line 22
const upload = multer({
storage: storage,
limits: {fileSize: 25000000},
fileFilter: function(req, file, cb){
checkFileType(file, cb)
}
}).array('myfile', 5) // 5 indicates that the number of file allowed to upload at once.
Prem Acharya extended from auther Traversy Media sample
1.0.0
This project is licensed under the MIT License