按照开发文档,希望在云函数中将buffer类型的数据转存为文件到云储存中,但是云函数报错“Path must be a string without null bytes”,路径必须是没有空字符的字符串? 路径应该怎么写?我按照文档中的来怎么都不行,求解?
let fs = require("fs");
let uploadFile = uniCloud.uploadFile({
cloudPath: '/test-admin.mp3',
fileContent: fs.createReadStream(totleBuff)//这里是buffer类型数据
});