1

When I use multer to parse a multipart data, the req.body is null

by inspecting the source code, I found out that it sets req.body to null

enter image description here

Do I miss something here?

Ahmad Adibzad
  • 501
  • 2
  • 6
  • 14
Sh eldeeb
  • 1,589
  • 3
  • 18
  • 41

1 Answers1

0

by deeply understand the encoding multipart/form-data, I found out that the data itself is placed inside the headers, middlewares like multer just populate the data into req.body and req.files

Sh eldeeb
  • 1,589
  • 3
  • 18
  • 41