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
h2 Upload
form(action="/" method="POST" enctype="multipart/form-data")
input(type="file" name="file")
input(type="submit" value="Upload")
input(type="file" name="file" multiple=false)
button(type="submit") Upload
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 A resulted link looks like this /f/base64rawURL(sha256)/filename.ext.