diff --git a/index.js b/index.js index a58046e..a5affd5 100644 --- a/index.js +++ b/index.js @@ -7,9 +7,9 @@ module.exports = { MulterStore: multer({ // dest:'./File/', // 这样,不能自定义文件名。 - storage: Multer.diskStorage({ + storage: multer.diskStorage({ destination (req, file, cb) { - // 如果直接提供字符串,Multer会负责创建该目录。如果提供函数,你要负责确保该目录存在。 + // 如果直接提供字符串,multer会负责创建该目录。如果提供函数,你要负责确保该目录存在。 const folder = wo?.envi?.uploadroot // 目录是相对于本应用的入口js的,即相对于 server.js 的位置。 cb(null, folder) },