Move a bit of template to its proper location.
`multiple` attribute belongs on file inputs, not buttons.main
parent
408a226956
commit
bbdc5325ae
4
main.go
4
main.go
|
@ -184,8 +184,8 @@ var baseFooter = `</body>
|
||||||
var uploadTemplate = `{{template "BaseHeader" "RUFF - Upload Form"}}
|
var uploadTemplate = `{{template "BaseHeader" "RUFF - Upload Form"}}
|
||||||
<form enctype="multipart/form-data" action="/" method="post">
|
<form enctype="multipart/form-data" action="/" method="post">
|
||||||
<label for="file">Select a file for upload:</label><br><br>
|
<label for="file">Select a file for upload:</label><br><br>
|
||||||
<input type="file" name="file">
|
<input type="file" name="file"{{if .Multiple}} multiple{{end}}>
|
||||||
<input type="submit" value="Upload"{{if .Multiple}} multiple{{end}}>
|
<input type="submit" value="Upload">
|
||||||
</form>
|
</form>
|
||||||
{{template "BaseFooter"}}`
|
{{template "BaseFooter"}}`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue