I'm doing a project in ASP.NET MVC 5, and I need the text of my input of type 'file' to change to the name of the file when loading it.
I've hidden the input so it can be triggered by clicking on label
in CSS as below:
HTML:
<div class="form-group">
<label for="fupload" class="control-label label-bordered">Clique aqui para escolher um arquivo</label>
<input type="file" id="fupload" name="fupload" class="fupload form-control" />
</div>
CSS:
input[type="file"] {
display: none;
}
.label-bordered {
border: 1px solid #cecece;
padding: 10px;
border-radius: 5px;
}
It looks like this:
Can someone give me a light?