Hi,
I'm developing rest service using Express framework, I used Postman to test
this web service, but I got this headache scenario need your help.
1. api method: /contents (POST)
2. request body (on Postman) (x-www-form-urlencoded):
*contents[0] : {file_name: 'abc.txt'}*
* contents[1]: {file_name: 'xyz.txt'}*
3. server:
var contents = req.body.contents;
console.log(contents[0]); //can see value here in string format with all
information
console.log(contents[0].file_name); // undefined??
I want to read attribute file_name, how I can do that?
Thanks,
--
Nguyen Hai Duy
Mobile : 0914 72 1900
Skype: nguyenhd2107
--
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/CAGOR8-05ckt3S6Wn4zMdX79JjfMo-HCh4M_DqD9xxifKOmKjQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.