mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
fix: filename
This commit is contained in:
parent
1da6e9e5e0
commit
6792b3c534
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user