在阿里云云对象中示例代码如下:
uniCloud.uploadFile({
cloudPath: getNewFileId(),
fileContent: Buffer.from(base64, 'base64')
}).then(res => {
let url = res.fileID
})
function getNewFileId() {
return Date.now() + String(index++) + '.png'
}
fileID返回图片链接,但是无法访问:
https://mp-09bb6f91-fc4d-406c-8eb2-fc8c3a0a6906.cdn.bspapp.com/cloudstorage/73393312-dac4-425e-bab1-3fbd07aaf5fb.png
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20240402/a5c0ff0a62d5c464f33cd0da4d5d5386.png)
base64字符串在附件中,试过把base64前缀data:image/png;base64,去掉也不行,请问是哪里出了问题?