expressjs / expressjs/multer

Request body is null after upgrade from 1.4.4 to 1.4.5-lts.1

Open
#1,115 5 comments 1 reaction 0 assignees View on GitHub
investigate
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

my request like this:

` POST http://localhost:8000/cos/uploadOneFile
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="param1";
Content-Type: text/plain

abc
--WebAppBoundary
Content-Disposition: form-data; name="upload"; filename="event/test1.jpg"
Content-Type: image/jpeg

< /root/test-00-04-49-489.jpg `

and I cannot get param1 from request body, and my code like this

`router.post('/uploadOneFile', upload.single('upload'), (request, response) => {
let { param1 } = request.body;
}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.