Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Upload multiple attachments may send them in random orders

Open
#194 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start at the DirectLineJS postActivity entry point and reproduce the example with its two image attachments while observing the network trace. Trace the attachment upload and activity-send flow; done means the bot receives attachments in the same order as the input array.

Written by the indexing model from the issue text.

Description

bug

Using DirectLineJS (not Web Chat) and send the following to the bot.

directLine.postActivity({
  attachments: [{
    contentType: 'image/png',
    contentUrl: 'https://webchat-waterbottle.azurewebsites.net/public/surfacelogo.png'
  }, {
    contentType: 'image/png',
    contentUrl: 'https://webchat-waterbottle.azurewebsites.net/public/xboxlogo.png'
  }],
  text: 'Hello, World!',
  type: 'message'
});

Due to network load speed differ, the bot may receive the two attachments in reversed order.

I looked at network trace, it seems DLJS is the root cause, not the channel.

Dominant language
TypeScript
Stars
199
Forks
133
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from microsoft/BotFramework-DirectLineJS

All issues in microsoft/BotFramework-DirectLineJS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.