change to 5gb

master
Lucas 2 years ago
parent 171fc25ee5
commit 7cfc4dba25
  1. 4
      src/common/services/adapters/upload-adapter.js

@ -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
}); });

Loading…
Cancel
Save