lishuhao / Sy_flutter_qiniu_storage
Licence: other
七牛云对象存储SDK,上传大文件,进度监听,取消上传
Stars: ✭ 68
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Sy flutter qiniu storage
tiny-qiniu-request
tiny-qiniu for rc-upload or antd upload component `customRequest` property
Stars: ✭ 13 (-80.88%)
Mutual labels: upload, qiniu
React Filepond
🔌 A handy FilePond adapter component for React
Stars: ✭ 1,024 (+1405.88%)
Mutual labels: upload
Fileuploaderplugin
Simple cross platform plugin to upload files.
Stars: ✭ 59 (-13.24%)
Mutual labels: upload
Express Fileupload
Simple express file upload middleware that wraps around busboy
Stars: ✭ 1,069 (+1472.06%)
Mutual labels: upload
Meteor Files
🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
Stars: ✭ 1,033 (+1419.12%)
Mutual labels: upload
Bashupload
PHP/JavaScript file upload web app to upload files from command line & browser, and download them elsewhere. Frequently used to upload/download files on servers. Hosted version is available at bashupload.com.
Stars: ✭ 56 (-17.65%)
Mutual labels: upload
Multiupload
Upload mehrerer Dateien gleichzeitig in den Medienpool
Stars: ✭ 43 (-36.76%)
Mutual labels: upload
File Dialog
Trigger the upload file dialog directly from your code easily.
Stars: ✭ 51 (-25%)
Mutual labels: upload
Angular Filepond
🔌 A handy FilePond adapter component for Angular
Stars: ✭ 59 (-13.24%)
Mutual labels: upload
Droply Js
Droply JS, a new responsive and cross browser chunk uploader with DragDrop and File Preview capabilities (HTML5/CSS3)
Stars: ✭ 50 (-26.47%)
Mutual labels: upload
Kbframe
一款基于Laravel框架开发的现代化二次开发框架,是高性能,高效率,高质量的企业级开发框架,具有驱动领域,敏捷开发,轻易上手,高内聚低耦合,开箱即用等特点。
Stars: ✭ 47 (-30.88%)
Mutual labels: upload
Miniflix
Miniflix - A smaller version of Netflix powered by Cloudinary
Stars: ✭ 58 (-14.71%)
Mutual labels: upload
Qiniu upload
vue中使用七牛上传的例子(vue init webpack构建,实现了组件化、断点续传、暂停上传、继续上传)
Stars: ✭ 45 (-33.82%)
Mutual labels: qiniu
Laravel Simple Uploader
Simple file uploader for Laravel 5.
Stars: ✭ 59 (-13.24%)
Mutual labels: upload
Node Qiniu Sdk
七牛云SDK,使用 ES2017 async functions 来操作七牛云,接口名称与官方接口对应,轻松上手,文档齐全
Stars: ✭ 44 (-35.29%)
Mutual labels: qiniu
Linx Server
Self-hosted file/code/media sharing website. ~~~~~~~~~~~~~~~~~~~ Demo: https://demo.linx-server.net/
Stars: ✭ 1,044 (+1435.29%)
Mutual labels: upload
Poosh
🌎 Publish local files to virtually any remote endpoint (e.g. AWS S3)
Stars: ✭ 55 (-19.12%)
Mutual labels: upload
Tus Java Server
Library to receive tus v1.0.0 file uploads in a Java server environment
Stars: ✭ 64 (-5.88%)
Mutual labels: upload
sy_flutter_qiniu_storage
七牛云对象存储SDK,兼容iOS和Android
- 上传大文件
- 进度监听
- 取消上传
官方文档
使用方法
iOS集成
无需任何操作
Android集成
无需任何操作
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:sy_flutter_qiniu_storage/sy_flutter_qiniu_storage.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
double _process = 0.0;
@override
void initState() {
super.initState();
}
_onUpload() async {
String token = '从服务端获取的token';
File file = await ImagePicker.pickVideo(source: ImageSource.camera);
if (file == null) {
return;
}
final syStorage = new SyFlutterQiniuStorage();
//监听上传进度
syStorage.onChanged().listen((dynamic percent) {
double p = percent;
setState(() {
_process = p;
});
print(percent);
});
String key = DateTime.now().millisecondsSinceEpoch.toString() +
'.' +
file.path.split('.').last;
//上传文件
var result = await syStorage.upload(file.path, token, key);
print(result);
}
//取消上传
_onCancel() {
SyFlutterQiniuStorage.cancelUpload();
}
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: const Text('七牛云存储SDK demo'),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: new Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
LinearProgressIndicator(
value: _process,
),
RaisedButton(
child: Text('上传'),
onPressed: _onUpload,
),
RaisedButton(
child: Text('取消上传'),
onPressed: _onCancel,
),
],
),
),
),
);
}
}
其它Flutter Plugin
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].