Saturday, 10 June 2017

restify request uploading file

I am creating a upload file method with my api which uses restify.

I am using postman for making the request, when I am using no header, it works just fine and upload the image, When I use the header:

content-type: application/x-www-form-urlencoded

I get this message:

"message": "Cannot read property 'originalname' of undefined"

How can I make the data not undefined with the header?



via Victor Oliveira

No comments:

Post a Comment