/*
uploader -- simplest form file uploader
-Copyright (C) 2018-2019 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2018-2020 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
var (
Index = template.Must(template.New("index").Parse(`<html>
<head><title>Upload</title></head><body>
+<pre>
+Example command line usage:
+ curl -F fileupload=@somedata.tar.gpg [-F comment="optional comment"] http://.../upload/
+ b2sum -a blake2b somedata.tar.gpg
+</pre>
<form enctype="multipart/form-data" action="/upload/" method="post">
<input type="file" name="{{.}}" /><br/>
<label for="comment">Optional comment:</label>