Move a bit of template to its proper location.

`multiple` attribute belongs on file inputs, not buttons.
main
diff 2021-03-25 17:44:34 +00:00
parent 408a226956
commit bbdc5325ae
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ var baseFooter = `</body>
var uploadTemplate = `{{template "BaseHeader" "RUFF - Upload Form"}}
<form enctype="multipart/form-data" action="/" method="post">
<label for="file">Select a file for upload:</label><br><br>
<input type="file" name="file">
<input type="submit" value="Upload"{{if .Multiple}} multiple{{end}}>
<input type="file" name="file"{{if .Multiple}} multiple{{end}}>
<input type="submit" value="Upload">
</form>
{{template "BaseFooter"}}`