multer filesize limit isn't working code example
Example: how to limit the file size in multer
var upload = multer({
storage: storage,
limits: { fileSize: maxSize } // filesize in bytes
}).single('bestand');
var upload = multer({
storage: storage,
limits: { fileSize: maxSize } // filesize in bytes
}).single('bestand');