Api method is looks like below
[HttpPost] public async Task> MediaBrand(IFormFile file, int brandId)
The below code should work
[HttpPost] public async Task> MediaBrand([FromQuery] int brandId, IFormFile file) { var files = new List(); files.Add(file); var response = await this.Upload(files, "brand", brandId); return response; }