小螺丝
小螺丝
  • 发布:2020-11-24 14:57
  • 更新:2022-03-25 10:16
  • 阅读:2485

【报Bug】uni.chooseFile 安卓手机 调用接口提示 “没有应用可执行此操作” !!

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 11.0.1

HBuilderX类型: Alpha

HBuilderX版本号: 2.9.11

浏览器平台: 微信内置浏览器

浏览器版本: 最新

项目创建方式: HBuilderX

App下载地址或H5⽹址: http://t.wzcke.com/pagesBd/detail/index?id=1330717984256118785&tenant_id=1&app_id=wxe38931d0ac3a437d

示例代码:

uni.chooseFile({
count: 1, //默认9
type: 'all',
extension:['.zip','.doc','.png','.docx','.xlsx'],
success: (res)=> {
// console.log(JSON.stringify(res.tempFilePaths));
const tempFilePaths = res.tempFiles;
// console.log(tempFilePaths[0])
if((tempFilePaths[0].size/1024/1024)>1){
uni.showToast({
title:'文件大小不得超过1M',
icon:'none'
})
return;
}
api.upbdannex(tempFilePaths[0].path,res=>{
uni.showToast({
title:'上传成功',
icon:'success'
})
this.name = tempFilePaths[0].name;
this.info.value =JSON.parse(res.data).link;
this.$emit('changeData',this.info);
})
}
});

操作步骤:

正常接口调用

预期结果:

正常唤起文件选择

实际结果:

无法唤起文件选择

bug描述:

调用 uni.chooseFile 安卓手机 提示“没有应用可执行此操作” 。

2020-11-24 14:57 负责人:无 分享
已邀请:
x***@163.com

x***@163.com - 初来咋到

现在只支持h5吧。

1***@qq.com

1***@qq.com

怎么解决啊,俺也是遇到这个问题

你这家伙

你这家伙

uni.chooseFile什么时候支持app啊

z***@qq.com

z***@qq.com

现在还是没有解决

  • DCloud_UNI_GSQ

    一样是安卓,一样的提示吗?

    2022-03-25 16:00

该问题目前已经被锁定, 无法添加新回复