flutter_qiniu_upload

support-android pub stars license

A flutter plugin for Qiniu file upload. Support multiple file uploads, listen progress and cancel uploads.

七牛文件上传插件,支持多文件上传、监听进度和取消上传。

Getting Started

初始化

QiniuUpload.initialize();

直接上传

final qiniuFile = await QiniuUpload.uploadDirectly(file, uploadToken, key);

监听进度

final requestId = await QiniuUpload.upload(file, uploadToken, key);
QiniuUpload.progress(requestId).listen((progress) {
  print(progress.percent);
});

取消上传

final requestId = await QiniuUpload.upload(file, uploadToken, key);
QiniuUpload.cancel(requestId);

Libraries

flutter_qiniu_upload