- 调用云函数cloud.uploadFile 报错
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/uploadFile/server.uploadFile.html //上传文件到存储 const imageUploadRes= await cloud.uploadFile({ cloudPath: 'Books/' + time + '.jpg', // 存储到云存储的路径和文件名 fileContent: fs.createReadStream(path.join(filePath,time+'.jpg')) }) 报错如下: uploadFile:fail 12680:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:F:\gitcode\node\deps\openssl\openssl\ssl\record\ssl3_record.c:308:
2023-11-06 - 云开发 从本地上传图片到云存储
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference/errcode.html 报错如下 Error: uploadFile:fail 13476:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:F:\gitcode\node\deps\openssl\openssl\ssl\record\ssl3_record.c:308: 代码如下 //上传文件到存储 const imageUploadRes= await cloud.uploadFile({ cloudPath: 'Books/' + time + '.jpg', // 存储到云存储的路径和文件名 fileContent: fs.createReadStream(filePath+'\\'+time+'.jpg') })
2023-11-06