Postman file sending via form-data not working

I am trying to test my written node-js backend. So i try to send a file over a POST request via Postman and multipart/form-data to the backend. If i am sending the file via postman the backend the payload is undefined. But it's working if I am sending it over a classic html form. Any suggestions?
1 answer

I had the same problem at Postman. Try to uncheck headers at request and it will work. Postman is sending wrong headers, so node-js can't handle them.


Had the same issue with postman, when working on an backend application. Without the selected headers of Postman, the requests work fine. Thank you!

Matthias Hofstätter - Mon, 12/14/2020 - 16:10 :::