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:3000
Thanks
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/13c078a9-9914-43d6-b78e-dfc93bdb0a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.