📜  Multer fileFilter 不起作用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:33.058000             🧑  作者: Mango

代码示例1
const uploadFilter = function(req, file, cb) {
    // filter rules here
}

const upload = multer({
    storage: storage,
    fileFilter: uploadFilter,
});