microsoft / microsoft/BotFramework-WebChat

Unable to attach same file in the next message with sendAttachmentOn: send

Open
#5,129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest)

Which area does this issue affect?

Send box

What is the public URL for the website?

No response

Please describe the bug

When using sendAttachmentOn: 'send' (the new default), I cannot attach the same file twice in a row. This occurs regardless of sending other text events, only when attaching. If you refresh the page, it works. It also works if you attach a different file, then your original file (with or without sending)

Do you see any errors in console log?

No response

How to reproduce the issue?
  1. Attach any file and send it
  2. Try to attach the same file again
  3. Refresh the page
  4. Now you can attach it
What do you expect?

I expect to be able to attach the same file again

What actually happened?

I cannot attach the file.

Do you have any screenshots or recordings to repro the issue?

webchat-samefile

Adaptive Card JSON

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the bundled webchat.js send box with sendAttachmentOn: 'send': attach and send a file, then attach the same file again without refreshing. Trace the attachment handling entry point and verify the file input state after sending. Done means the same file can be attached and sent twice consecutively in current Chrome and Edge.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.