Search code examples
node.jsmulter

File upload issue in multer.


I'm using multer for upload a file in node. I have create a API for that and which is works fine with postman. When android developers call my API then I got file as in image.

I cann't understand the issue. Either it is from android side or from my side ?

Image of file in console


Solution

  • It is the common mistake by developer to pass header

    Try to pass this header

    'Content-Type':'application/json'