1
0

Added a Delete section in an index template.

This commit is contained in:
Alexander Andreev 2022-07-01 03:59:01 +04:00
parent 0a6c8e5d49
commit 985dfaa8ab
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -30,6 +30,14 @@ block body
p.center Over I2P: #[code curl --proxy 127.0.0.1:4444 -F 'file=@somefile.ext' http://upload.arav.i2p] p.center Over I2P: #[code curl --proxy 127.0.0.1:4444 -F 'file=@somefile.ext' http://upload.arav.i2p]
p.center A resulted link looks like this: #[code /f/base64rawURL(sha256)/filename.ext]. p.center A resulted link looks like this: #[code /f/base64rawURL(sha256)/filename.ext].
p.center filename.ext is mandatory. It is a name the file will be retrieved with. p.center filename.ext is mandatory. It is a name the file will be retrieved with.
section
h2 Delete
form(action="/delete" method="POST")
input(type="text", name="hash" placeholder="File hash goes here" minlength="43" maxlength="43" size="43" required="")
button(type="submit") Delete
section
p.center You can delete a file using cURL: #[code curl -XDELETE https://upload.arav.top/<hash>]
p.center Over I2P: #[code curl --proxy 127.0.0.1:4444 -XDELETE https://upload.arav.top/<hash>]
section section
h2 Privacy statements h2 Privacy statements
p I WILL cooperate with law enforcements and provide them with logs, guess I shouldn't clarify why. Abuses should be sent to #[a(href="mailto:admin@arav.top") admin@arav.top]. p I WILL cooperate with law enforcements and provide them with logs, guess I shouldn't clarify why. Abuses should be sent to #[a(href="mailto:admin@arav.top") admin@arav.top].