chunked_uploader 0.0.2+1
chunked_uploader: ^0.0.2+1

Dart native
Flutter Android iOS

A plugin to upload files to server in chunks using Dio.

Chunked Uploader #

A plugin to upload files to server in chunks.

pub package

Usage #

To use this plugin, add chunked_uploader as dependency in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter
  chunked_uploader: ^0.0.2+1

Example #

ChunkedUploader chunkedUploader = ChunkedUploader(Dio(BaseOptions(
    baseUrl: 'https://example.com/api',
    headers: {'Authorization': 'Bearer'})));
try {
  Response response = await chunkedUploader.upload(
      filePath: '/path/to/file',
      maxChunkSize: 500000,
      path: '/file',
      onUploadProgress: (progress) => print(progress));
  print(response);
} on DioError catch (e) {
  print(e);
}
2
likes
70
pub points
43%
popularity

A plugin to upload files to server in chunks using Dio.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

amirpanahandeh@gmail.com

License

MIT (LICENSE)

Dependencies

dio, path

More

Packages that depend on chunked_uploader