You could check out a "Content-Type: multipart/form-data" parser. I have 
used https://www.npmjs.com/package/multiparty with pretty good results in 
the past.

On Sunday, August 30, 2015 at 12:59:19 PM UTC+8, Soorya Prakash wrote:
>
> HI,
>  I am sending the data as application/json having image file and i am 
> using skipper-gridfs node module to store it in mongo database directly 
> which works fine .But before storing I need to check the file size and 
> type. My problem is I am simply sending the response for the api call via 
> google chrome rest client like below.
>    
> *  function(req, res) {*
>
> *        res.status(200).send({"message":"Done"});*
> *     }*
>
> In this case , i am not getting any response .I don't know why please help 
> me in this. I am sending the image in a post request of size 200 kb.  I am 
> not doing anything instead only sending the response.
>

-- 
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/59ae3c30-a05e-43e9-a62d-29ffea26781d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to