go-examples/photoblog/templates/upload.html

15 lines
454 B
HTML

{{ 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" }}