uni.chooseImage({
count: 1, // 只选择1张图片
sizeType: ['original'], // 原图
sourceType: ['album', 'camera'], // 可从相册或相机选择
success: (res) => {
相册选择图片,使用原图时下面api报错
const fs = uni.getFileSystemManager();
console.log("要获取的文件路径",filePath);
fs.readFile({
filePath: filePath,
encoding: 'base64',
success: (fileRes) => {
报错如下:
readfileutil /storage/emulated/0/Pictures/Lark/1757498348562.jpg [boolean] false
//[uts.sdk.modules.DCloudUniFileSystemManager.FileSystemManagerFailImpl]
{
"errCode":
//[number]
1300013,
"cause": null,
"data": null,
"errMsg": "Permission denied",
"errSubject": "uni-fileSystemManager",
"message": "",
"name": "Error"
}
相册选择图片,使用缩略图时不报错

1***@qq.com
- 发布:2025-09-10 19:30
- 更新:2025-09-10 20:03
- 阅读:21
uni.chooseImage选择原图的情况下readFile方法报错errCode: 1300013errMsg: "Permission denied"
分类:uni-app x
1 个回复
DCloud_UNI_yuhe
hello , 运行到哪个平台产生的问题?hbuilderx版本是多少?