go-examples/photoblog/templates/upload.html

15 lines
454 B
HTML
Raw Normal View History

2017-07-29 11:54:23 +00:00
{{ template "header.html" }}
<h1>Send photo</h1>
<form action="/upload" method="POST" enctype="multipart/form-data">
{{ if .message }}<p class="message">{{ .message }}</p>{{ end }}
{{ if .error }}<p class="errormsg">{{ .error }}</p>{{ end }}
<label>
Select photo: {{ if .file }}<b>{{ .file }}</b>{{ end }}
<input type="file" name="file">
</label>
<br>
<input type="submit">
</form>
<a href="/">Back</a>
{{ template "footer.html" }}