From 1517f4f0c3bf7ad5b164be47d10f15b729325b38 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 19 Dec 2023 16:55:49 -0300 Subject: [PATCH] fix(basic.gblib): SEND FILE TO extension adjusted according to file type. --- packages/basic.gblib/services/DialogKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index d48cee59..9628fff9 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -1269,7 +1269,7 @@ export class DialogKeywords { GBLog.info(`BASIC: Direct send from .gbdrive: ${filename} to ${mobile}.`); - const ext = mime.extension(Path.extname(filename)); + const ext = Path.extname(filename); const gbaiName = DialogKeywords.getGBAIPath(min.botId); let { baseUrl, client } = await GBDeployer.internalGetDriveClient(min); @@ -1289,7 +1289,7 @@ export class DialogKeywords { if (!url) { - const ext = mime.extension(Path.extname(filename.localName)); + const ext = Path.extname(filename.localName); // Prepare a cache to be referenced by Bot Framework.