Answer the question
In order to leave comments, you need to log in
Connect-multiparty express req.files undefined can't do anything(( what to do?
I can’t do anything ((I upload via postman form/data, connection-muptiparty is connected, output req.files is empty(((
+ I make a request via postman: form-data, I specify the key (file) in the body and the file type is file, select image 100kb, press send
how to get image properties ?
console.log(req.files.file);
TypeError
: Cannot read property 'file' of undefined
get its properties..
res.json({par: req.body});
{
"par": {
"------WebKitFormBoundarywGyH56j1QQEYFSe6\r\nContent-Disposition: form-data; name": "\"file \"; filename=\"pic.jpg\"\r\nContent-Type: imag...........
What am I doing wrong?(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question