go-examples/photoblog/templates/upload.html
2017-07-29 16:51:12 +02:00

17 lines
478 B
HTML

{{ template "header.html" . }}
<h1>Send photo</h1>
<div class="form-container">
<form action="/upload" method="POST" enctype="multipart/form-data">
{{ if .Message }}<p class="message">{{ .Message }}</p>{{ end }}
{{ if .Err }}<p class="error">{{ .Err }}</p>{{ end }}
<label>
Select photo:
<input type="file" name="file">
</label>
<br>
<input type="submit" value="Send">
<a href="/">Back</a>
</form>
</div>
{{ template "footer.html" }}