user3293156 user3293156 - 1 month ago 26
Javascript Question

Does restify support image upload at server side?

I am trying to create a REST API server that can accept image uploads with node.js restify. I looked at the documentation at http://restify.com/ but unable to ascertain if restify supports image upload as a server.

Does restify support image upload at server side? If no, which node.js module can one use to do image upload as server?

Answer

restify comes with a bundled BodyParser which is able to handle uploads (multipart/form-data only) and allow to have a custom handler (see multipartFileHandler option) for uploaded files read the docs on BodyParser for details and sample.