Post method return "Unable to recognize the file type"

You can use the Postman code export to generate working code:


This is an example for PHP, but it works the same for Javascript.