You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user uploads a file and sends it as part of a message, the TeamsActivityHandler.onMessage method should be called and the file should be correctly referenced in context.activity.attachments.
Describe the bug
When the uploaded file contains a plus symbol (e.g. for a file named "document+comments.pdf"), the TeamsActivityHandler.onMessage method is called without referencing the file in context.activity.attachments. Therefore, the information about a file being included in the message is lost.
Curiously, with the application I'm working on, the file (e.g. "document+comments.pdf") gets uploaded to SharePoint. So it seems that the information about the file is lost somewhere further along the way.
To Reproduce
On your computer, create a local file with a plus symbol in its name (e.g. "document+comments.pdf")
In a Teams bot chat, write a message (any text) without sending it yet
Attach the file to the message (choose upload from local device)
Send the message (with the attached file)
Information about the uploaded file will be missing from context.activity.attachments in TeamsActivityHandler.onMessage
The text was updated successfully, but these errors were encountered:
Versions
botbuilder version: 4.22.2
Node version: 18.14.0
Expected behavior
When a user uploads a file and sends it as part of a message, the
TeamsActivityHandler.onMessage
method should be called and the file should be correctly referenced incontext.activity.attachments
.Describe the bug
When the uploaded file contains a plus symbol (e.g. for a file named "document+comments.pdf"), the
TeamsActivityHandler.onMessage
method is called without referencing the file incontext.activity.attachments
. Therefore, the information about a file being included in the message is lost.Curiously, with the application I'm working on, the file (e.g. "document+comments.pdf") gets uploaded to SharePoint. So it seems that the information about the file is lost somewhere further along the way.
To Reproduce
context.activity.attachments
inTeamsActivityHandler.onMessage
The text was updated successfully, but these errors were encountered: