18 lines
555 B
HTML
18 lines
555 B
HTML
{{ template "header.html" . }}
|
|
<h1>Send photo</h1>
|
|
<div class="form-container">
|
|
<form action="/upload" method="POST" enctype="multipart/form-data">
|
|
<input type="hidden" name="gorilla.csrf.Token" value="{{ .CsrfToken }}">
|
|
{{ 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" }}
|