node.js - Multer uploading array of files fail -


i have array of file objects sent server. "files[0] = (file object), files[1]= ... " multer doesn't recognized field name , "request.files" empty "request.body array of files.

use multer middleware upload.any()

app.post('/photos/upload', upload.any(), function (req,  res, next) {    // req.files array of `photos` files     // req.body contain text fields, if there   }) 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -