17 lines
478 B
HTML
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" }}
|