okay-uploader
qiniu uploader js-sdk
Last updated 3 months ago by sunjunjie .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install okay-uploader 
SYNC missed versions from official npm registry.

Okay-Uploader-JsSDK

基于七牛API开发的符合Okay业务需求的前端Javascript SDK

参考地址

七牛SDK

引入

使用

1. 使用全局OkayUploader对象,配置生成uploader实例

uploadTokenUrl: 【必填】获取上传token,返回格式必须包含 domain和uploadToken。

var uploader = OkayUploader({
	uploadTokenUrl: 'http://localhost:1995/uptoken',
	error: function(error){
	},
	uploadProgress: function(res){
	},
	uploadComplete: function(res){
	}
});
$('#uploadfile').unbind('change').bind('change',function(){
	uploader.addFile(this.files);
	uploader.start();
})

API

Current Tags

  • 1.0.3                                ...           latest (3 months ago)

4 Versions

  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |