Skip to content
pubscout

flutter_upchunk

2.1.0, released 3 months ago by an unverified publisher

A chunk uploader for Flutter based on the JS library UpChunk.

WASM-ready
$ flutter pub add flutter_upchunk
Source repository

What it does

Flutter UpChunk allows you to upload large files in chunks to a given endpoint with support for pauses, resumes, retries, and progress tracking.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to upload large files in chunks to avoid request timeouts or size limits.
  • You want built-in retry logic, pausing, and resuming for file uploads.

Skip it when

  • You are doing simple single-request file uploads where standard HTTP POST/PUT suffices.

Strengths

  • Supports chunked uploading with configurable chunk sizes and retry attempts.
  • Provides pause, resume, restart, and stop controls.
  • Supports web, mobile, and desktop platforms.

Weaknesses

  • Relies on specific server-side support for chunked PUT requests.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

final upChunkUpload = UpChunk(
  endPoint: uploadUrl,
  file: XFile(filePath),
  onProgress: (progress) {
    print('Upload progress: ${progress.ceil()}%');
  },
  onSuccess: (response) {
    print('Upload complete! (status: ${response.statusCode})');
  },
);

Alternatives

Packages that do the same job and could replace flutter_upchunk.

  • http

    For simple core networking tasks without extra chunking logic.

Works with

Packages commonly used together with flutter_upchunk: ones it builds on, ones built on it, and its own family.