Skip to content
  • v3.1.1
  • 9298065
  • Compare
    Choose a tag to compare
    Search for a tag
  • v3.1.1
  • 9298065
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jul 31, 2020 · 1 commit to master since this release

#463 key 支持设为 null 或者 undefined,以支持文件资源名自动设为 hash

Assets 2
  • v3.1.0
  • 598b823
  • Compare
    Choose a tag to compare
    Search for a tag
  • v3.1.0
  • 598b823
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jul 23, 2020 · 4 commits to master since this release

#460 增加 upprotocol 参数用于自定义上传域名协议,删除对当前 window 对象协议的判断

Assets 2
  • v3.0.3
  • 54557c0
  • Compare
    Choose a tag to compare
    Search for a tag
  • v3.0.3
  • 54557c0
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jun 30, 2020 · 6 commits to master since this release

#456

  • 修复解析 token 的 bug
  • 完善 observable 文件的类型
  • fix issue #445
Assets 2
  • v3.0.2
  • 1b81947
  • Compare
    Choose a tag to compare
    Search for a tag
  • v3.0.2
  • 1b81947
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jun 24, 2020 · 7 commits to master since this release

#453 fix #452 判断是否分片上传时,file.sizeDEFAULT_CHUNK_SIZE 比较时单位未统一

Assets 2
  • 3.0.0
  • b6e543d
  • Compare
    Choose a tag to compare
    Search for a tag
  • 3.0.0
  • b6e543d
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jun 22, 2020 · 10 commits to master since this release

3.0.0

  • 对接新上传 API
  • 支持 typescript

breaking change:

  • 由于上传 API 的变更及部分冗余接口整理,删除了部分对外接口:
    • filterParams:用于过滤掉 putExtraparams 里不符合自定义变量规则的变量。删除掉后增加了
    • createMkFileUrl:返回创建文件的 url,因为 2.x 中创建文件的接口构造比较复杂,所以当时把这个暴露了出去。在更新新上传 API 后考虑到在实际使用中应该提倡用户使用 sdk,并且因为新 API 里的接口形式单一,所以这里就不对外暴露了。
    • getHeadersForMkFile:与 createMkFileUrl 配合使用,因为 createMkFileUrl 删除,所以这里也不再保留。
    • getResumeUploadedSize:返回已上传的 chunk 大小。实际使用中用户不需要去关心已上传的 chunk,所以这里删除。
  • putExtra 参数改变
    • mimeType 含义改变,之前代表的是允许上传的文件类型数组,现在代表的是用户所设置的文件类型
    • customVars 代替原有的 params

升级文档

Assets 2
  • v3.0.1
  • a33f3aa
  • Compare
    Choose a tag to compare
    Search for a tag
  • v3.0.1
  • a33f3aa
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Jun 22, 2020 · 9 commits to master since this release

#451
依赖 spark-md5exif-js 移到 dependencies

Assets 2
  • 2.5.5
  • adaf292
  • Compare
    Choose a tag to compare
    Search for a tag
  • 2.5.5
  • adaf292
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Oct 23, 2019 · 23 commits to master since this release

pr#429

  • 修复文件上传地址中的类型错误
  • 更新下 README 里的描述
Assets 2
  • 2.5.4
  • ec50efa
  • Compare
    Choose a tag to compare
    Search for a tag
  • 2.5.4
  • ec50efa
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Feb 18, 2019 · 31 commits to master since this release

pr#400

  • 某些浏览器环境下,xhr 的 progress 事件无法被触发,之前以为只是在低版本浏览器中出现,后来发现,在 ios12 仍然有该现象,之前打算对浏览器版本进行判断,后来发现并不准确,目前采取比较中和的方式,在每次分片完成后都更新下进度
  • 静态日志的请求发送在打开之前,会报错
  • 优化断点记录,在每次分片请求完成后都记录一下,避免出现浏览器退出或者刷新浏览器导致断点没有记录的问题
Assets 2
  • 2.5.3
  • 7e07e59
  • Compare
    Choose a tag to compare
    Search for a tag
  • 2.5.3
  • 7e07e59
  • Compare
    Choose a tag to compare
    Search for a tag

@lzfee0227 lzfee0227 released this Nov 8, 2018 · 45 commits to master since this release

pr#402 修复暂停后 ctx 缺少 size 信息的问题

Assets 2

@lzfee0227 lzfee0227 released this Nov 7, 2018 · 49 commits to master since this release

pr#402 增加接口查看断点续传时文件已上传大小

Assets 2
You can’t perform that action at this time.