okay-uploader
v1.0.3
Published
qiniu uploader js-sdk
Downloads
4
Readme
Okay-Uploader-JsSDK
基于七牛API开发的符合Okay业务需求的前端Javascript 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();
})