BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Documents are not processed by the channel

Open reyesrico opened this issue 9 years ago • 13 comments

If the bot sends a document of any file, the channel does not support to send the document, only is sending the type of the file.

img_1543

reyesrico avatar Dec 07 '16 01:12 reyesrico

I don't believe this is true. WebChat does send the actual file. It just doesn't show it unless it recognizes it. The bot should be able to access the file as a message attachment. Please let me know if your bot cannot access the uploaded file.

billba avatar Dec 07 '16 01:12 billba

I think he means the other direction. The bot can send a file to the client. This can be reproed from testbot with the actions command and then clicking the Download File button.

eanders-ms avatar Dec 07 '16 18:12 eanders-ms

The user should be able to open this document sent from the bot: image

Perhaps, if the doc can't be rendered in the chat window, it should be downloaded. Following that, it seems that even docs that can be rendered (e.g. images) should be able to be downloaded as well.

eanders-ms avatar Dec 07 '16 18:12 eanders-ms

Got it. It's weird how people keep expecting me to "read" their "carefully written bug reports".

I think images are best handled with a right-click Save operation. I'd hate to put a "download" link next to every image - most of the time it would be distracting and unwelcome.

For non-images all we've got is a URL anyway, so we could easily just make it a live link, which again they could right-click to download (or click to jump to). What would the UX be? Maybe just highlight "File"? I don't want to show the whole URL because it would be ugly.

billba avatar Dec 07 '16 18:12 billba

@kevkor. Maybe make this portion of the message clickable, taking user to the attachment's url: image

eanders-ms avatar Dec 07 '16 19:12 eanders-ms

Yeah I'll try that and a few variations and see what seems most usable. Open to better ideas from @kevkor

billba avatar Dec 07 '16 19:12 billba

I'm thinking that it would be cool to show an icon of the file type. @kevkor ?

danmarshall avatar Dec 07 '16 20:12 danmarshall

Bumping this thread (we received another support email about it), and adding @jecristi for design input.

eanders-ms avatar Jan 27 '17 16:01 eanders-ms

@jecristi did we have a design for this, which depicted a file as a card?

danmarshall avatar Jan 27 '17 21:01 danmarshall

As a simple solution we could display the filename of the attachment and make it clickable for download (and generate a filename for it if missing).

eanders-ms avatar Jan 27 '17 21:01 eanders-ms

Hi Dan,

I don’t believe we have designs for this yet.

Jeremy Cristiano —

UX Designer Microsoft | FUSE Labs

jecristi avatar Jan 27 '17 22:01 jecristi

@jecristi can we get the design from you?

danmarshall avatar Jul 07 '17 21:07 danmarshall

Fixed by #602

danmarshall avatar Nov 06 '17 22:11 danmarshall