increase allowable image filesize from 10mb to 20mb
This commit is contained in:
parent
cd06dbd9fc
commit
a38c29b5b5
@ -5,7 +5,7 @@ const sharp = require("sharp");
|
||||
const upload = multer({
|
||||
storage: multer.memoryStorage(),
|
||||
limits: {
|
||||
fileSize: 10 * 1024 * 1024, // 10MB max file size
|
||||
fileSize: 20 * 1024 * 1024, // 20MB max file size
|
||||
},
|
||||
fileFilter: (req, file, cb) => {
|
||||
// Only accept images
|
||||
|
||||
Loading…
Reference in New Issue
Block a user