Skip to content
pubscout

chunked_uploader

1.1.0, released 3 years ago by an unverified publisher

Upload files to a server in chunks using Dio for mobile, desktop, and web.

$ flutter pub add chunked_uploader
Source repository

What it does

Allows uploading large files in smaller chunks to prevent memory issues and handle interrupted transfers. Supports both file paths and data streams for web compatibility.

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

Use it when

  • You need to upload large files to a backend server
  • You are using Dio for network requests
  • You need to support file uploads on web, mobile, and desktop

Skip it when

  • You are not using Dio as your HTTP client
  • You only need simple single-request file uploads

Strengths

  • Supports chunked file uploads across mobile, desktop, and web
  • Provides both stream-based and file-path-based upload methods
  • Allows custom headers for each chunk upload request

Weaknesses

  • Requires Dio as the underlying HTTP client
  • Limited documentation beyond basic usage examples

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3

Add chunked_uploader and dio to your dependencies.

final dio = Dio(BaseOptions(baseUrl: 'https://example.com/api'));
final uploader = ChunkedUploader(dio);
final response = await uploader.upload(
  fileName: file.name,
  fileSize: file.size,
  fileDataStream: file.readStream!,
  maxChunkSize: 500000,
  path: '/file',
  onUploadProgress: (progress) => print(progress),
);

Alternatives

Packages that do the same job and could replace chunked_uploader.

  • cloudinary_sdk

    Pure Dart SDK for Cloudinary API, enabling signed/unsigned uploads, deletes, and URL generation.

  • dio_flow

    Flexible Flutter HTTP client built on Dio with mock support, caching, and token management.

  • uploadcare_client

    A Dart library for working with the Uploadcare REST API for file uploads, analysis, and transformations.

  • flutter_cache_manager_dio

    A Dio‑based cache manager that extends flutter_cache_manager for downloading and caching files.

Works with

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