Skip to content

A flutter plugin for Qiniu file upload. Support multiple file uploads, listen progress and cancel uploads. 七牛文件上传插件,支持多文件上传、监听进度和取消上传。

License

Notifications You must be signed in to change notification settings

bruce3x/flutter_qiniu_upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

A flutter plugin for Qiniu file upload. Support multiple file uploads, listen progress and cancel uploads. 七牛文件上传插件,支持多文件上传、监听进度和取消上传。

Resources

License

Stars

Watchers

Forks

Packages

No packages published