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

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

Open
colin-han opened this issue Mar 30, 2019 · 0 comments
Open

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

colin-han opened this issue Mar 30, 2019 · 0 comments

Comments

@colin-han
Copy link

通过类似如下代码上传一个文件名包含中文的文件,并触发分片上传(文件大于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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant