filesharing/views/upload.pug

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-08-25 06:43:38 +00:00
doctype html
html(lang='zh')
head
meta(charset='UTF-8')
meta(http-equiv='X-UA-Compatible' content='IE=edge')
meta(name='viewport' content='width=device-width, initial-scale=1.0')
link(rel='icon' href='/favicon.ico' type='image/x-icon')
link(rel='stylesheet' href='/style.css')
title 文件上传
2022-08-25 06:43:38 +00:00
body
h1 文件上传
p
a(href='/') 返回首页
2022-08-26 07:23:34 +00:00
if file
section
2022-08-26 12:26:06 +00:00
p
| 文件  
var #{file.filename}  
| 分享成功!
p 链接  
- const url = '/file/' + file.id
2022-08-26 12:26:06 +00:00
a(href=url)= url
form(method='POST' action='/upload' enctype='multipart/form-data')
label(for='file_input') 文件
input(id='file_input' name='file' type='file' required)
label(for='password_input') 密码
input(id='password_input' name='password' type='password' autocomplete='off')
button(id='share_button' type='submit') 分享