microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.56k stars 1.51k forks source link

Enable auto-submit of selected file #5193

Closed giobb closed 1 month ago

giobb commented 1 month ago

I have a question

Hi,

We noticed that when uploading file, we now need to press Enter to submit it. It used to be that after selecting the file, it is uploaded rightaway. Is there a new option setting for this? We started noticing that "dot" in the clip icon after selecting the file, hinting that we need to do press a key to initiate the upload.

image

compulim commented 1 month ago

This is a new feature in 4.17.0 related to PR #5123.

To opt-out of this new experience, please set styleOptions.sendAttachmentOn to "attach". This will change the behavior and send the attachment when the end-user attach the file.

giobb commented 1 month ago

Works. Thanks so much @compulim.