I am using Multer to get files from requests for my Express API, and I am wondering what the purpose of the error value in the filename callback is. Here is my code:
const multerFile = multer({
storage: multer.diskStorage({
destination: "uploads/",
filename: (req, file, callback) => {
callback(ERROR HERE WHAT IS THIS FOR?, "fileNameHere`);
},
}),
});