fix: filename

This commit is contained in:
Mohamed Marrouchi 2024-10-18 18:05:56 +01:00
parent 1da6e9e5e0
commit 6792b3c534

View File

@ -711,7 +711,7 @@ export default class BaseWebChannelHandler<
storage: diskStorage({
destination: dirPath, // Set the destination directory for file storage
filename: (_req, _file, cb) => {
cb(null, filename); // Set the file name
cb(null, sanitizedFilename); // Set the file name
},
}),
}).single('file'); // 'file' is the field name in the form