1
0

input submit replaced with button submit.

input file was explicitly set to choose just one file.
This commit is contained in:
Alexander Andreev 2022-02-11 02:55:07 +04:00
parent 2e8e97d0a5
commit c8958427a3
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -18,8 +18,8 @@ block body
section#upload.center section#upload.center
h2 Upload h2 Upload
form(action="/" method="POST" enctype="multipart/form-data") form(action="/" method="POST" enctype="multipart/form-data")
input(type="file" name="file") input(type="file" name="file" multiple=false)
input(type="submit" value="Upload") button(type="submit") Upload
section section
p.center You can use curl to upload a file: #[code curl -X POST -F 'file=@somefile.ext' https://upload.arav.top/]. p.center You can use curl to upload a file: #[code curl -X POST -F 'file=@somefile.ext' https://upload.arav.top/].
p.center A resulted link looks like this /f/base64rawURL(sha256)/filename.ext. p.center A resulted link looks like this /f/base64rawURL(sha256)/filename.ext.