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