<form enctype="multipart/form-data" action="PostMultipleFile" method="post">
<input type="file" name="files" multiple>
<input class="btn" type="submit" value="Upload" />
</form>
[HttpPost("PostMultipleFile")]
public async Task<ActionResult> PostMultipleFile([FromForm] IFormFileCollection files)
{
if (files == null)
{
return BadRequest();
}
try
{
return Ok();
}
catch (Exception)
{
throw;
}
}
[Display(Name = "Фото")]
public IFormFileCollection Images { get; set; }
public async Task<Result<int>> EditFeedBackAsync([FromForm] Models.FeedBack.FeedBack feedBack)
public async Task<Result<int>> EditFeedBackAsync(IFormFileCollection Images)