Hi,
I am trying to upload an image using bodyparser middleware in Connect.
But when i try to print req.files, it is showing undefined.
Here is my server code:-
conn.use(connect.bodyParser());
conn.use(function(req,res){
console.log(req.headers);
console.log(req.body);
console.log(req.files);
res.end();
});
conn.listen(3000);
Here is the curl command:-
curl -F "image=@World_Challenge.jpg" -F "name=ishan"
http://localhost:3000Thanks