vue上传文件到七牛云


## vue 中上传文件到七牛云








关键点:
1.获取后台返回的token
2.qiniu.upload(file: blob, key: string, token: string, putExtra: object, config: object) 查找这里面存在的几个配参数
3.编写上传的几个步骤
	

const observer = {
next: response => {

        },
        error: err => {
      
        },
        complete: response => {
          
        }
      }
4.执行七云开始上传
	var observable = qiniu.upload(file, key, token, putExtra, config)
	var subscription = observable.subscribe(observer) // 上传开始

你可能感兴趣的:(vue)