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

31 lines
1.4 KiB
Plaintext

extends base.jade
block body
section#rules.center
h2 Rules
ul
li Max. file size is #{.FileMaxSz}.
li Anything you upload should comply with Russian Federation's law.
li Generally speaking, anything that could cause me to deal with police, FSB, etc is forbidden.
li If anything illegal will be found it will be removed.
section#used-space.center
h2 Used space
div
span #{.StorageUsedStr}
progress(value=.StorageUsed max=.StorageCapacity)
span #{.StorageCapStr}
div
| #{.StorageAvailStr}
section#upload.center
h2 Upload
form(action="/" method="POST" enctype="multipart/form-data")
input(type="file" name="file")
input(type="submit" value="Upload")
section.center
p A resulted link looks like this /f/base64rawURL(sha256)/filename.ext.
p filename.ext could be anything but empty. It is a name the file will be retrieved with.
section
h2 Privacy statements
p I will cooperate with law enforcements and provide them with logs, and, if it still there, a file caused problems. Other than such situations logs won't get to the hands of third parties.
p Upload logs include: access time, IP-address, name of a file it was uploaded with, a SHA-256 hash of the file, download name, size of the file in bytes.
p Each download also being logged and include: access time, IP-address, name of a file it was requested with, download name.
p Download name is a salted SHA-256 hash of the file encoded using base64 raw URL encoding.