<input type="file" class="form-control" id="file" @bind-value="file" placeholder="Выберите файл" />
....
...
....
@code {
IFormFile file;
}
System.InvalidOperationException: "The type 'Microsoft.AspNetCore.Http.IFormFile' does not have an associated TypeConverter that supports conversion from a string. Apply 'TypeConverterAttribute' to the type to register a converter."