I have a SpringBoot app. with Thymeleaf, with this property file:
signup.form.error.file.too.big=File ${fileName} is too Big
on the contoller:
if (Objects.nonNull(fileExceedsTheconfiguredMaximum)) {
hasErrors = true;
model.addAttribute("fileName", fileExceedsTheconfiguredMaximum.getOriginalFilename());
}
on the template:
<li th:if="${fileToBig}" th:text="#{signup.form.error.file.too.big}" />
but I see this on the browser:
File ${fileName} is too Big