upload-ux · upload-ux-06 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: upload-ux buyer question - mobile image picker with reliable background upload, phrased as variant B.
react-native-background-upload was recommended first; your brand (Cloudinary React Native SDK / upload widget) was named #4.
7 sources read.
Rivals also named: tus-js-client (alternative), expo-file-system (createUploadTask) (negative), Transloadit (mentioned)
> Our React Native app lets users pick photos from their camera roll and upload them, and we want reliable background upload with retry logic and progress reporting rather than writing our own upload manager. What should we use?Install react-native-background-upload (the actively maintained Vydia fork), which gives true OS-level background upload (NSURLSession on iOS, a foreground upload service on Android), configurable retry (maxRetries on Android, OS-persisted sessions on iOS), and built-in progress/error/completed/cancelled event listeners. It was recommended over tus-js-client (great for chunked resumability but doesn't itself provide OS-level background execution in RN) and over expo-file-system's createUploadTask, which currently has open regressions around background progress reporting.
1. Install react-native-background-upload (Vydia's actively-maintained fork):
npm install --save react-native-background-upload
cd ios && pod install && cd ..
(Android: add the ProGuard keep rule for net.gotev.uploadservice in proguard-rules.pro)
2. Wire it into the existing photo-picker flow. For each selected camera-roll asset, call
Upload.startUpload({ url, path: asset.uri, method: 'POST', type: 'multipart', field: 'file' })
and attach Upload.addListener('progress' | 'error' | 'completed' | 'cancelled', uploadId, handler)
to drive your progress UI and success/failure states.
3. Configure retry behavior: set maxRetries on Android (defaults to 2, raise if you want more
resilience on flaky networks) and rely on iOS's NSURLSession-backed background session, which
the OS itself persists and resumes even if the app is suspended/killed and relaunched.
4. Keep an upload queue (even a simple array in AsyncStorage/MMKV) mapping asset id -> uploadId/
status, so you can re-attach listeners to in-flight uploads after an app relaunch and show
"resuming upload" in the UI rather than losing track of it.
5. Skip building a custom NSURLSession/WorkManager bridge yourselves, and skip expo-file-system's
createUploadTask for this — its progress-callback support has open regressions/inconsistent
behavior in background mode. If your backend later exposes a tus-protocol endpoint, tus-js-client
is a reasonable complementary choice for chunked resumability, but it does not itself provide
OS-level background execution on RN, so it doesn't replace react-native-background-upload for
the "background" requirement in this ask.
Recommendation: react-native-background-upload. It's purpose-built for exactly this ask — true
OS-level background upload (NSURLSession on iOS, a foreground Android upload service), configurable
retry, and progress/error/completed event listeners out of the box — so you're not hand-rolling
background session management, retry backoff, and progress plumbing yourselves.| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | react-native-background-upload | recommended | Purpose-built OS-level background upload with configurable retry and progress/error/completed event listeners out of the box | npm install --save react-native-background-upload |
| 2 | tus-js-client | alternative | Strong resumable-chunked-upload protocol client with retryDelays and onProgress, but no native OS-level background session integration in RN on its own | npm install tus-js-client |
| 3 | expo-file-system (createUploadTask) | negative | Built-in Expo upload task, but has open GitHub issues/regressions around progress callbacks and slow uploads in background mode | - |
| 4 | Cloudinary React Native SDK / upload widget | mentioned | Surfaced in search results as a media-focused upload/delivery SDK, but is not itself a generic background-upload-with-retry manager | - |
| 5 | Transloadit | mentioned | Named in the comparison search query as a file-processing/upload service but not substantively explored | - |