I alway receive BadRequest 400 when I use C# .Net Framework to post a file to API endpoint by form-data
There is an api service which can convert audio.wav file to text, and the text string would be returned as a field of json format. I tried to add new feature in a WinFrom program by C# .Net Framework to connect it to the API service to generate text files.
I used swagger and postman to test the API, and both of them successfully returned text generated from the audio file, but my WinFrom App always receives BadRequest 400.