|
|
|
@ -38,7 +38,7 @@ const createFolder = ({ path }) => { |
|
|
|
|
try { |
|
|
|
|
console.log(`${filePath}/${path}`); |
|
|
|
|
multer({ dest: `${filePath}/${path}` }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// multer({ dest: `${filePath}/images/games` });
|
|
|
|
|
// multer({ dest: `${filePath}/images/stories` });
|
|
|
|
@ -101,7 +101,7 @@ const fileFilter = (req, file, cb) => { |
|
|
|
|
const uploader = multer({ |
|
|
|
|
storage, |
|
|
|
|
limits: { |
|
|
|
|
fileSize: 1024 * 1024 * 2048 // 5MB
|
|
|
|
|
fileSize: 1024 * 1024 * 5048 // 5MB
|
|
|
|
|
}, |
|
|
|
|
fileFilter |
|
|
|
|
}); |
|
|
|
|