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