COS API中文件名参数问题

发布于 8 年前作者 yiming11066 次浏览最后编辑 8 年前来自 ask

cosFileName为中文的时候实际存储的文件名不是中文而是utf8格式的

cos.postObject({

Bucket: config.Bucket,

Region: config.Region,

Key: cosFileName,

FilePath: FilePath,

onProgress: function(info) {

console.log(JSON.stringify(info));

}

}, function(err, data) {

0 回复
暂无回复