chrisftian

Results 14 comments of chrisftian

> 最近配置上域名,然后上传还是有点问题。 有空麻烦指导一下。 > > ![image](https://user-images.githubusercontent.com/23522154/122916911-00606200-d390-11eb-9911-93a645878927.png) > > ![image](https://user-images.githubusercontent.com/23522154/122916958-0e15e780-d390-11eb-9343-5ac55de1761a.png) > > @carsonxu 大佬帮忙看看白。 有没有配置跨域 ![image](https://user-images.githubusercontent.com/25949099/123912083-2baa0900-d9af-11eb-92dd-3a9fe9df9103.png)

> let that = this; await requestCloudWechat("/tencentCloud/cosCredential/getCredential.do", { region: requestCos.region, bucket: requestCos.bucket, }).then((res) => { if (res.resultCode === 0) { this.record = res.data.record; this.cos = new COS({ getAuthorization:(options, callback) =>{...

> ``` > 'Pic-Operations': > JSON.stringify({ > "is_pic_info": 1, > "rules": [{ > "fileid": camSafeUrlEncode(key), "rule": transformWatermarkQuery(config) > }] > }) > ``` > > 使用 encodeURIComponent 传递,没报错,但是带中文的水印传不上去。 尝试了camSafeUrlEncode 400...

> 我是调用同步的api 辛苦先使用异步的方式。 您这边有什么场景必须使用同步的方式?

> 正常情况不会这样重试的,辛苦贴一下代码我们定位一下。(注意屏蔽下敏感信息)

网络情况如何

> > 试试:new COS({ KeepAlive: false }); > > 还是不行 辛苦测试下最新版本是否能够复现

感谢反馈 因为有一些历史问题 待我们内部评估

感谢反馈,高级上传、批量上传目前只支持传FilePath,不支持传Body。后面我们优化下这个场景。

fixed in v2.13.2 cos.uploadFiles({ files: [{ Bucket: config.bucket, Region: config.region, Key: params.cosPath + '/' + name, Body: item.buffer, }] })