40 lines
1.9 KiB
Plaintext
40 lines
1.9 KiB
Plaintext
extends base.jade
|
|
|
|
block header
|
|
h1 Upload
|
|
|
|
block body
|
|
:go:func Index(mainSite string, storageCapacity, storageUsed int64, keepForHours int, fileMaxSize, storageUsedStr, storageCapacityStr, storageAvailableStr string)
|
|
section#rules.center
|
|
h2 Rules
|
|
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#occupied-space.center
|
|
h2 Occupied space
|
|
div
|
|
span #{storageUsedStr}
|
|
progress(value=storageUsed max=storageCapacity)
|
|
span #{storageCapacityStr}
|
|
div
|
|
| #{storageAvailableStr}
|
|
section#upload.center
|
|
h2 Upload
|
|
form(action="/" method="POST" enctype="multipart/form-data")
|
|
input(type="file" name="file" multiple=false)
|
|
button(type="submit") Upload
|
|
section.center
|
|
p You can use cURL to upload a file: #[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 A resulted link looks like this: #[code /base64rawURL(salted SHA-256)/filename.ext].
|
|
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.center
|
|
p You can delete a file 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>]
|
|
section
|
|
h2 Privacy statements
|
|
p Any abuses should be sent to #[a(href="mailto:admin@arav.su") admin@arav.su]. I WILL cooperate with law enforcements and provide them with logs.
|
|
p Logs include: access time, IP-address, file name it was uploaded/downloaded with, a SHA-256 hash of it, size of it, and User-Agent. |