how to change input element with type=file text with thymeleaf th:text

Viewed 145

How to change label from input type=file?

I want to change "Dateien auswählen" and "keine ausgewählt" with Thymeleaf tag with international (Ressourcen bundle).

This is my code:

    <input th:classappend="${#fields.hasErrors('fileList')}? 'is-invalid'"
    class="form-control"
    type="file"
    th:text="#{com.mddoc.file.select}"
    th:field="*{fileList}" multiple/>

And the result:

enter image description here

0 Answers
Related