明树Git Lab

Commit 6d6c2081 authored by zfp1's avatar zfp1

update

parent 048ca4b7
Pipeline #108287 passed with stage
in 3 seconds
...@@ -15,7 +15,7 @@ async function upload(req, res, next) { ...@@ -15,7 +15,7 @@ async function upload(req, res, next) {
filename: req.file.filename, filename: req.file.filename,
path: req.file.path, path: req.file.path,
// nginxpath, // nginxpath,
size: (req.file.size / (1048576)).toFixed(2), size: (req.file.size / (1048576)).toFixed(2) + 'MB',
realSize: req.file.size, realSize: req.file.size,
}); });
res.sendData(ret); res.sendData(ret);
...@@ -37,7 +37,7 @@ async function batchUpload(req, res, next) { ...@@ -37,7 +37,7 @@ async function batchUpload(req, res, next) {
path: element.path, path: element.path,
// size: element.size, // size: element.size,
// nginxpath, // nginxpath,
size: (element.size / (1048576)).toFixed(2), size: (element.size / (1048576)).toFixed(2) + 'MB',
realSize: element.size, realSize: element.size,
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment