Skip to content

Fix attachment upload mobile - #10491

Open
kashaf-ansari-dev wants to merge 6 commits into
masterfrom
fix-attachment-upload-mobile
Open

kashaf-ansari-dev wants to merge 6 commits into
masterfrom
fix-attachment-upload-mobile

Conversation

@kashaf-ansari-dev

Copy link
Copy Markdown
Member

Description

This PR addresses three key issues around file attachments and uploads on mobile:

  1. Android Document Picker Failure: Resolves an issue where picking files/audio on Android (specifically Android 15 / OEM file explorers) would hang or silently fail due to scoped storage mode. Configured picker to mode: "open" with requestLongTermAccess: false, and added user-facing error toasts on failure.
  2. Infinite Upload Retries & Backoff: Previously, failed or pending attachment uploads would retry indefinitely on every sync cycle. Added a 5-attempt limit (MAX_UPLOAD_ATTEMPTS = 5) along with an exponential cooldown schedule (30s -> 2m -> 5m -> 15m) across syncs to avoid burning retries back-to-back or spamming the server. Terminal client errors (403 quota full, 413 file too large, 401 unauthorized) now fast-fail immediately.
  3. Web-Aligned Error Parsing & Manual Retry: Aligned S3/upload error parsing with the Web client to extract XML and JSON error codes/messages. Added a manual "Retry" action button in the Manage Attachments menu so users can easily re-attempt failed uploads without waiting for auto-sync.

Closes #10405
Closes #10411
Closes #10389

Type of Change

  • Bug fix
  • Feature

Visuals

  • Attached relevant screenshots / screen recording / GIF
  • N/A (not a feature or no UI changes)

Testing

  • Ran all E2E tests
  • Ran all integration tests
  • Added/updated tests for this change (if needed)
  • N/A (tests not needed — explanation provided below)

If tests were not added, explain why

Platform

  • Web
  • Mobile
  • Desktop

Sign-off

  • QA passed
  • UI/UX passed

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
… manual retry action

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
…owing

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
…retry action

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
…deletion non-blocking

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
@github-actions

Copy link
Copy Markdown

Cloudflare Pages Preview

https://267bc279.notesnook-app.pages.dev

Commit: b823617

@github-actions

Copy link
Copy Markdown

Desktop Previews

Commit: b823617

This branch was successfully deployed

1 active deployment
internal — 0c21862d Deployed Oct 14, 2026 by kashaf-ansari-dev via authorize #4434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error during opening Upload error Getting this error again and again

1 participant