README | 8 +++++--- main.go | 13 +++++++------ rc.d/uploader | 34 ---------------------------------- service/uploader/log/run | 2 ++ service/uploader/run | 4 ++++ diff --git a/README b/README index 7ab9f86acc11b9fca9923faa91997086acbc51ad..30e9c388c190be3d441bc8034e92bf6367f9093a 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ -Simplest form file uploader. +Simplest HTTP form file uploader. It just saves uploaded file from HTML form to the new file on the disk. -Also it calculates BLAKE2b checksum, replying with it in the answer. +Also it calculates BLAKE2b-512 checksum, replying with it in the answer. You can upload files with curl: @@ -9,10 +9,12 @@ curl -F file=@somedata.tar.gpg \ [ -F comment="optional comment" ] \ http://localhost:8086/upload/ -You can verify integrity locally: +and verify integrity locally: b2sum -a blake2b somedata.tar.gpg You can enable mail notification with -notify-to and -notify-from options. +It is advisable to run it under daemontools-like supervisor +(http://cr.yp.to/daemontools.html). Example service/uploader provided. uploader is free software: see the file COPYING for copying conditions. diff --git a/main.go b/main.go index 23a3accbe2046619267e52bebb7c6d653e8b5934..00b396e4ba9c4450ed3ba3d7518c495e9b363c12 100644 --- a/main.go +++ b/main.go @@ -54,11 +54,10 @@ var ( Index = template.Must(template.New("index").Parse(`
Example command line usage: - - $ curl -F file=@somedata.tar.gpg [-F comment="optional comment"] http://.../upload/ - $ b2sum -a blake2b somedata.tar.gpg # to verify checksum ++$ curl -F file=@somedata.tar.gpg [-F comment="optional comment"] http://.../upload/ +$ b2sum -a blake2b somedata.tar.gpg # to verify checksum