Skip to content

feat: global upload manager to track file uploads outside of AttachmentManager#1715

Open
szuperaz wants to merge 1 commit intomasterfrom
global-upload-manager
Open

feat: global upload manager to track file uploads outside of AttachmentManager#1715
szuperaz wants to merge 1 commit intomasterfrom
global-upload-manager

Conversation

@szuperaz
Copy link
Copy Markdown
Contributor

@szuperaz szuperaz commented Apr 1, 2026

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

RN PR for reference: GetStream/stream-chat-react-native#3527

React Native allows hitting the send button before attachment uploads are completed. This means they need a way to track attachment upload status outside of AttachmentManager.

To solve this we have an UploadManager (can be accessed via client.uploadManager) that uses the AttachmentManager of a given channel to do attachment upload, and has a state to track uploadProgress for attachments.

Attachments are tracked by id in UploadManager.

Long-term solution: we talked with @isekovanic that messageComposer should have support for this feature, but that is a bigger task, not the scope of this PR.

Changelog

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Size Change: +3.47 kB (+0.94%)

Total Size: 374 kB

📦 View Changed
Filename Size Change
dist/cjs/index.browser.js 125 kB +1.16 kB (+0.94%)
dist/cjs/index.node.js 126 kB +1.16 kB (+0.93%)
dist/esm/index.mjs 124 kB +1.15 kB (+0.94%)

compressed-size-action

@szuperaz szuperaz force-pushed the file-upload-on-progress branch from c39d2bd to 7040f4c Compare April 8, 2026 08:28
@szuperaz szuperaz changed the title Global upload manager feat: global upload manager Apr 8, 2026
Base automatically changed from file-upload-on-progress to master April 8, 2026 08:40
@szuperaz szuperaz marked this pull request as draft April 8, 2026 10:34
@szuperaz szuperaz force-pushed the global-upload-manager branch 13 times, most recently from a2ce058 to 6357776 Compare April 9, 2026 11:48
@szuperaz szuperaz force-pushed the global-upload-manager branch from 6357776 to e985d60 Compare April 9, 2026 11:49
@szuperaz szuperaz marked this pull request as ready for review April 9, 2026 12:18
@szuperaz szuperaz changed the title feat: global upload manager feat: global upload manager to track file uploads outside of AttachmentManager Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants