I want to upload file with api, but also I need to send 'ID'. Same code is working in local, but does not working on IIS.
        [HttpPost("{id}")]
        [Route("Upload/{id}")]
        public async Task<IActionResult> Upload(int id)
        {
            using (var client = new HttpClient())
            {
                foreach (var file in Request.Form.Files)
                {
                    // . . . more logic    
                }
            }
            return new OkResult();
        }


