Api method is looks like below
[HttpPost] public async Task> MediaBrand(IFormFile file, int brandId)
Update [FromForm] attribute, and don't put parameter into Headers, and put name of key is file and brandId.
I tested, It is Ok