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