7월, 2017의 게시물 표시
body-parser 흔한 에러 undefined ' ' 폼에서 input value 를 노드js에서 사용하기 위해선 bodyparser를 써야 하는데.. 에러가 8시간동안 괴롭혔다는것.. 이유는 단순히 .handbars 에 form tag 중 밑에 clause를.... 않넣어서 그랬다... enctype="multipart/form-data"
CRUD  is an acronym for Create, Read, Update and Delete. It is a set of operations we get servers to execute (POST, GET, PUT and DELETE respectively). This is what each operation does: Create (POST)  - Make something Read (GET) _- Get something Update (PUT)  - Change something Delete (DELETE) - Remove something

multer related issue with undefined path

multer issue -- undefined path error !! The <NAME> you use in multer's upload.single(<NAME>) function must be the same as the one you use in <input type="file" name="<NAME>" ...> . So you need to change var type = upload.single('file') to var type = upload.single('recfile') in you app.js Hope this helps.
linux terminal commands tips   you need to do  su -  to become superuser, and then create the directory with  mkdir -p /data/db chown - change file owner and group ex-  chown `id -u` /data/db