Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance javascript_nodejs/15.handling-attachments sample for use file types different than images #4006

Open
lord-maestro-encora opened this issue Aug 1, 2024 · 4 comments
Assignees
Labels
feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@lord-maestro-encora
Copy link

lord-maestro-encora commented Aug 1, 2024

attachmentsBot.js file works with image file samples.
however when I tried changing to pdf or xlsx files the output says RestError: Unknown attachment type
this is the attachment sent:

{
  name: 'MLBOOK.pdf',
  contentType: 'application/pdf',
  contentUrl: 'https://ai.stanford.edu/~nilsson/MLBOOK.pdf'
}


Error returned

[onTurnError] unhandled error: RestError: Unknown attachment type

It would be very helpful to offer file outputs different than image files. Also if another sample offers options to show how to handle pdf or other document files would be very appreciated.

@lord-maestro-encora lord-maestro-encora added feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team. labels Aug 1, 2024
@stevkan stevkan self-assigned this Aug 31, 2024
@stevkan
Copy link
Collaborator

stevkan commented Aug 31, 2024

@lord-maestro-encora - Thank you for your patience.

Can you tell me which version of the SDK you used when you tested this?
Does the problem persist using the most recent version?
Lastly, which client are you using to communicate with your bot (WebChat, Slack, etc.)?

@lord-maestro-encora
Copy link
Author

hi @stevkan Thank you so much for your answer
The issue persists.
It was using Microsoft Teams
Can you show me how to obtain SDK version you've requested? Is it a node.js package?

@stevkan
Copy link
Collaborator

stevkan commented Sep 5, 2024

@lord-maestro-encora - The version will be listed within the package.json file located in your project's root folder. It will, for example, look something like "botbuilder": "^4.22.2".

@lord-maestro-encora
Copy link
Author

Thank you @stevkan
"botbuilder": "^4.20.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

2 participants