0.0.5 • Published 2 years ago

yz-file-upload v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

可配置选项

fileUpload.configure(config)

config

  • server: '',
  • port: '9007',
  • author: 'Basic dXBsb2FkZXI6dXBsb2FkZXI=',
  • burst: 1024 1024 40, // 文件大于多少时分片上传
  • unit: 1024 1024 10, // 文件分片上传时每片多大

上传文件

  • 上传文件
  • @param {Blob} file - 上传的文件
  • @param {String} fileName - 文件名
  • @param {Function} process - 进度回调
  • @return {Promise} - 上传结果

    fileUpload.upload(file, fileName, process)

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago