[HttpPost("/my/api/call")] public async Task<IActionResult> UploadFiles(IFormCollection form) { var file = form?.Files?.FirstOrDefault(); if (file == null) return BadRequest(); var stream = new MemoryStream((int)file.Length); file.CopyTo(stream); return Ok("Uploaded"); }
714600cookie-checkC# WebApi FileUpload