<!DOCTYPE html>
<html lang="en" xmlns:th="www.thymeleaf.org " xmlns:sec="www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Bootstrap 101 Template</title>
</head>
<body>
<br /><br />
<h1>Spring Boot file upload example</h1>
<form method="POST" action="/add" th:object="${actor}" enctype="multipart/form-data">
    Name: <input type="text" th:field="*{name}" />
    Real Name: <input type="text" th:field="*{realname}" />
    <input type="file" name="file" /><br/><br/>
    <input type="submit" value="Submit" />
</form>
</body>
</html>