Last updated
Last updated
req.body
is JSON of data
req.body.name
Adds support for enctype="multipart/form-data"
Now the files are in your filesystem, use them as you would static files.
newItem.img.data = fs.readFileSync(req.files.userPhoto.path) newItem.img.contentType = ‘image/png’;