Multer upload multiple files from different inputs
问题 I'm rather new to multer/node/express/mongoose/... and I'm currently trying to upload multiple files from different inputs that have the same name (I generate the inputs using reactjs). Here's my React front-end: onSubmit = (e) => { e.preventDefault(); const {imges} = this.state; let formData = new FormData(); formData.append('imges', imges); axios.post('newuser', formData) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); }