1
0
dwelling-upload/web/templates/index.jade

30 lines
1.4 KiB
Plaintext
Raw Normal View History

extends base.jade
block header
h1 Upload
block body
:go:func Index(mainSite string, keepForHours int, fileMaxSize, storageAvailableStr string)
section#rules
h2 Rules
2023-05-27 19:33:02 +04:00
p Maximum file size is #[b #{fileMaxSize}] and it will be kept for #[b #{keepForHours}] hours.
p Content you upload should comply with Russian Federation's law. Generally speaking, anything illegal, like CP, extremist literature, and so on is forbidden.
section#upload.center
h2 Upload
form(action="/" method="POST" enctype="multipart/form-data")
input(type="file" name="file" multiple=false)
button(type="submit") Upload
2023-08-06 04:00:09 +04:00
p.center #[b #{storageAvailableStr}] left.
section
p Using cURL: #[code curl -F 'file=@somefile.ext' https://upload.arav.su]
p Over I2P: #[code curl --proxy 127.0.0.1:4444 -F 'file=@somefile.ext' http://upload.arav.i2p]
p Same for Tor, just set #[code --proxy] and replace a domain.
2023-05-26 04:36:36 +04:00
p A resulted link looks like this: #[code /base64rawURL(salted SHA-256)/filename.ext].
2022-07-01 04:05:42 +04:00
section.center
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 Using cURL: #[code curl -XDELETE https://upload.arav.su/<hash>]
p Over I2P: #[code curl --proxy 127.0.0.1:4444 -XDELETE http://upload.arav.i2p/<hash>]