chunked_uploader 0.1.0
chunked_uploader: ^0.1.0 copied to clipboard

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.1.0

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);
}
3
likes
90
pub points
67%
popularity

Publisher

Unknown

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, path, universal_io

More

Packages that depend on chunked_uploader