chunked_uploader 0.0.1 copy "chunked_uploader: ^0.0.1" to clipboard
chunked_uploader: ^0.0.1 copied to clipboard

outdated

A plugin to upload files to server in chunks.

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

Example #

ChunkedUploader chunkedUploader = ChunkedUploader(
    options: BaseOptions(
        baseUrl: 'https://example.com/api',
        headers: {
          'Authorization': 'Bearer',
        }),
    fileKey: 'file',
    method: 'POST',
    filePath: '/path/to/file',
    maxChunkSize: 500000,
    path: '/file');
chunkedUploader.progressStream.listen((event) {
  print(event);
});
try {
  Response response = await chunkedUploader.upload();
  print(response);
} on DioError catch (e) {
  print(e);
}
30
likes
0
pub points
88%
popularity

Publisher

unverified uploader

A plugin to upload files to server in chunks.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dio, path

More

Packages that depend on chunked_uploader