Update index.js
Browse files
index.js
CHANGED
@@ -91,9 +91,9 @@ app.post('/upload', upload.single('file'), async (req, res) => {
|
|
91 |
ctx.font = '20px WenQuanYi Zen Hei';
|
92 |
|
93 |
const text = `
|
94 |
-
File
|
95 |
-
File
|
96 |
-
File
|
97 |
Created At: ${new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })}
|
98 |
Created By: ${hostname}
|
99 |
`;
|
|
|
91 |
ctx.font = '20px WenQuanYi Zen Hei';
|
92 |
|
93 |
const text = `
|
94 |
+
File Name: ${fileName}
|
95 |
+
File Type: ${fileType}
|
96 |
+
File Size: ${fileBuffer.length} bytes
|
97 |
Created At: ${new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })}
|
98 |
Created By: ${hostname}
|
99 |
`;
|