Files
FotoSharing/target/classes/templates/upload.html

24 lines
738 B
HTML

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8"/>
<title>Upload - FotoSharing</title>
</head>
<body>
<h1>Uploader une photo</h1>
<form th:action="@{/upload}" method="post" enctype="multipart/form-data">
<input type="file" name="file"/><br/>
<label>Visibilité:
<select name="visibilite">
<option value="PRIVATE">Privée</option>
<option value="PUBLIC">Publique</option>
<option value="SHARED">Partagée</option>
</select>
</label><br/>
<button type="submit">Envoyer</button>
</form>
<div th:if="${error}" th:text="${error}"></div>
<div th:if="${message}" th:text="${message}"></div>
</body>
</html>