botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Non-Image Attachments in Web Chat Control

Open XelaMon opened this issue 10 years ago • 5 comments

In my bot, I attach some csv files when sending a response back to the user. In the Direct Line API response, this shows up in the "attachments" array with the contentType of "text/csv". However, in the web chat control, this attachment doesn't show up at all.

Is it possible to at least get the URL of attachments to show up in the bot's response in the Web Chat Control?

XelaMon avatar Jul 07 '16 17:07 XelaMon

This is a known limitation if the current version of the web chat control. We're planning to release a new version in the future.

dandriscoll avatar Jul 12 '16 04:07 dandriscoll

@dandriscoll what's the timeline on CSV uploading?

stanleycyang avatar Oct 16 '16 02:10 stanleycyang

We're actively working on this but I don't have a timeline to announce yet. Please stay tuned.

dandriscoll avatar Oct 16 '16 10:10 dandriscoll

@dandriscoll I noticed that you guys do offer a link to download the CSV on response. I'm going to try and see if I can stream the data into the bot. If it works, I'll send a PR your way as well

stanleycyang avatar Oct 16 '16 22:10 stanleycyang

I actually fixed this problem by streaming it with https.

stanleycyang avatar Oct 20 '16 23:10 stanleycyang