Nth Phonetic Mnemonic

    okay-uploader

    1.0.3 • Public • Published

    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

    Install

    npm i okay-uploader

    DownloadsWeekly Downloads

    2

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    535 kB

    Total Files

    24

    Last publish

    Collaborators

    • sunjunjie