joonsei
Hello, world!
joonsei
전체 방문자
오늘
어제
  • 분류 전체보기 (32)
    • nodejs (7)
    • javascript (3)
    • Elasticsearch (11)
    • Electron (1)
    • oracle (1)
    • etc (7)
    • MongoDB (1)

인기 글

최근 댓글

최근 글

joonsei
nodejs

req.body null 일때

2017. 9. 12. 15:18

nodejs에서 Request 로그를 남길 때
보통 req.body 의 데이터를 남기곤 하는데

파일 첨부 형식의 enctype 일 경우 req.body 는 null 이다.

# enctype="multipart/form-data" 인 경우 
app.post('/save', (req, res) => {
    console.log(req.body); //null
});
저작자표시 (새창열림)
    'nodejs' 카테고리의 다른 글
    • youtube 영상 다운로드
    • body-parser (urlencoded, extended 옵션)
    • nodejs 기본 메모리 제한
    • child_process에서 spawn, exec 차이
    joonsei
    joonsei
    IT 개발자의 소소한 기술 이야기.

    티스토리툴바