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
Post a Comment