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-08-01 16:50:39 +04:00
:go:func Index(mainSite string, keepForHours int, fileMaxSize, storageAvailableStr string)
2023-08-22 18:19:47 +04:00
section
2022-06-14 18:45:23 +04:00
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.
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-08-22 18:19:47 +04:00
section.center
2022-06-14 18:45:23 +04:00
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.
2023-08-05 06:51:39 +04:00
section
2023-08-06 04:33:09 +04:00
p Using cURL: #[code curl -F 'file=@somefile.ext' https://upload.arav.su]
2023-08-22 18:46:02 +04:00
p Also works under other networks (I2P, Tor, Yggdrasil). For Tor and I2P you'll need to add a #[code --proxy] option for cURL. Same for deletion.
p A resulted link has the following structure: #[code <site>/<hash>/<file>.<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
2023-08-05 06:51:39 +04:00
section
2023-08-22 18:46:02 +04:00
p Using cURL: #[code curl -XDELETE https://upload.arav.su/<hash>]