File uploading with Express 4.0: req.files undefined

后端 未结 9 1765
感动是毒
感动是毒 2020-11-22 10:10

I\'m attempting to get a simple file upload mechanism working with Express 4.0 but I keep getting undefined for req.files in the app.post

9条回答
  •  既然无缘
    2020-11-22 11:11

    express-fileupload looks like the only middleware that still works these days.

    With the same example, multer and connect-multiparty gives an undefined value of req.file or req.files, but express-fileupload works.

    And there are a lot of questions and issues raised about the empty value of req.file/req.files.

提交回复
热议问题