2023-02-23 18:16:06 +04:00
extends base.jade
2022-06-13 20:00:49 +04:00
2023-02-23 18:28:01 +04:00
block header
2022-06-14 18:45:23 +04:00
h1 Upload
2022-06-13 20:00:49 +04:00
2022-06-14 18:45:23 +04:00
block body
2023-02-23 18:28:01 +04:00
:go:func Index(mainSite string, storageCapacity, storageUsed int64, keepForHours int, fileMaxSize, storageUsedStr, storageCapacityStr, storageAvailableStr string)
2022-06-14 18:45:23 +04:00
section#rules.center
h2 Rules
2023-03-12 00:36:46 +04:00
p Maximum file size is #{fileMaxSize} and it will be kept for #{keepForHours} hours.
2023-05-24 23:09:47 +04:00
p Content you upload should comply with Russian Federation's law. Generally speaking, anything illegal, like CP, extremist literature, and so on is forbidden.
2023-05-27 19:32:44 +04:00
section#occupied-space.center
h2 Occupied space
2022-06-14 18:45:23 +04:00
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
2022-07-01 04:09:23 +04:00
section.center
2023-02-23 18:16:06 +04:00
p You can use cURL to upload a file: #[code curl -F 'file=@somefile.ext' https://upload.arav.su]
2022-07-01 04:09:23 +04:00
p Over I2P: #[code curl --proxy 127.0.0.1:4444 -F 'file=@somefile.ext' http://upload.arav.i2p]
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
2022-07-01 03:59:01 +04:00
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
2022-07-01 04:09:23 +04:00
section.center
2023-02-23 18:16:06 +04:00
p You can delete a file using cURL: #[code curl -XDELETE https://upload.arav.su/<hash>]
2022-07-02 04:05:46 +04:00
p Over I2P: #[code curl --proxy 127.0.0.1:4444 -XDELETE http://upload.arav.i2p/<hash>]
2022-06-14 18:45:23 +04:00
section
h2 Privacy statements
2023-03-12 00:36:46 +04:00
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.