go-examples/photoblog/templates/upload.html

17 lines
478 B
HTML
Raw Normal View History

2017-07-29 14:51:12 +00:00
{{ template "header.html" . }}
2017-07-29 11:54:23 +00:00
<h1>Send photo</h1>
2017-07-29 14:51:12 +00:00
<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>
2017-07-29 11:54:23 +00:00
{{ template "footer.html" }}