multer 2.0 file size limit 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');