Skip to content

fix(mobile): allow stalled composer uploads to be cancelled - #3892

Open
Chessing234 wants to merge 3 commits into
block:mainfrom
Chessing234:fix/mobile-upload-cancel
Open

fix(mobile): allow stalled composer uploads to be cancelled#3892
Chessing234 wants to merge 3 commits into
block:mainfrom
Chessing234:fix/mobile-upload-cancel

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • Give each Blossom upload its own abortable HTTP client with image/file/video timeouts.
  • Add cancel on the composer upload progress tile and dismiss on failed upload copy.
  • Keep user-initiated cancellation silent while surfacing timeout errors with actionable text.

Fixes #3764 (recovery UX; does not claim to fix the reported 401 root cause).

Test plan

  • flutter test test/shared/relay/media_upload_test.dart --name "upload cancellation"
  • Start an attachment upload, tap cancel, confirm the progress tile clears without an error
  • Force a slow/failed upload and dismiss the error banner

Made with Cursor

Chessing234 and others added 3 commits July 31, 2026 13:30
Give each in-flight media PUT its own HTTP client so cancelActiveUploads()
can abort stalled requests, and cap image/file/video uploads with explicit
timeouts that surface actionable copy instead of hanging forever.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose a cancel action on the upload progress tile, let users dismiss failed
upload copy, and keep cancellation silent while surfacing timeout errors.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Add an injectable upload HTTP client factory for tests and assert cancel and
timeout paths surface the dedicated recovery exceptions.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Chessing234
Chessing234 requested a review from a team as a code owner July 31, 2026 10:31
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.

Mobile: stalled media uploads cannot be cancelled or dismissed

1 participant