diff --git a/api/src/extensions/channels/offline/base-web-channel.ts b/api/src/extensions/channels/offline/base-web-channel.ts index 591672c..9142394 100644 --- a/api/src/extensions/channels/offline/base-web-channel.ts +++ b/api/src/extensions/channels/offline/base-web-channel.ts @@ -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