Multer - sitechtimes/club-attendance-backend-v2 GitHub Wiki

Multer is a node.js middleware for handling multipart/form-data, which is primarily used for uploading files.

The Multer setup can be found in ./src/multer

Currently Multer is configured to accept files that are a maximum of 200kb, this can be increased however it is currently setup to be stored in memory so the file size should be limited.

Multer can also be configured to store files from multipart/form-data locally by configuring a 'dest' or 'storage'. Multer's documentation can be found here

From the documentation a 'dest' can be setup as shown below

const upload = multer({ dest: 'uploads/' })