Commit 1439523c by Zllgogo

no message

parent d37a21cc
......@@ -59,7 +59,10 @@ export async function parseFormParam(req, res, next) {
} else if (req.files.formData.type == "application/pdf") {
req.fileType = '.pdf';
return next();
}else {
} else if (req.files.formData.type == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"){
req.fileType = '.xlsx';
return next();
} else {
return next(new BizError(ERRORENUM.只能上传docdocxpngjpg图片) )
}
}
......
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