I have an ASP.NET Core 5 web app with an action to upload a file.
This is de model:
public class UploadViewModel
{
public IFormFile FileToUpload { get; set; }
}
This is the view part
<div class="form-group">
<label class="control-label">@Localizer["FileToUpload"]</label>
<input asp-for="FileToUpload" class="form-control" />
<span asp-validation-for="FileToUpload" class="text-danger"></span>
</div>
In the web browser I can see a "Choose file" button inside a text box with "No file chosen" text:
This app is localized so I need to change these texts depending on the selected language, is it possible?