Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

分片上传文件,如果文件名包含中文,报错。 #42

@colin-han

Description

@colin-han

通过类似如下代码上传一个文件名包含中文的文件,并触发分片上传(文件大于4M)时。

    this.uploader = new UploaderBuilder()
      .debug(true)
      .button('chooseButton')
      .domain({ http: QINIU_STORAGE_DOMAIN })
      .tokenShare(true)
      .tokenFunc(async (setToken) => { ... })
      .listener({ ... });

文件上传成功,但客户端代码qiniu4js.js中1638行报错:DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions