I have below object.
export const multerOptions = {
storage: diskStorage({
destination: multerConfig.dest,
filename: (_req: any, file: any, cb: any) => {
/* istanbul ignore next */
cb(null, `${uuid()}${extname(file.originalname)}`);
},
}),
};
when I am printing multerOptions.storage it is returning below.
diskStorage({
destination: multerConfig.dest,
filename: (_req: any, file: any, cb: any) => {
/* istanbul ignore next */
cb(null, `${uuid()}${extname(file.originalname)}`);
},
}),
.
is there anyway I can access this filename or destination