gpt4 book ai didi

android - 具有接受 ='image/*;capture=camera' 选项的 android phonegap 应用程序不支持输入类型文件

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:17:39 25 4
gpt4 key购买 nike

我已经使用 phonegap 创建了一个应用程序,它需要从画廊、相机等上传图像。

我正在使用

<input type='file' accept='image/*;capture=camera' />

但它在 Android 上不支持它只显示画廊而不是相机选项,而在 iPhone 上它适用于相机但在选择捕获的相机图像后它会刷新应用程序。

如果我做错了,请帮助我。

谢谢,维杰·巴恩沃尔

最佳答案

兄弟,我猜你给出的代码中的语法错误应该是

<input type='file' accept='image/*' capture='camera' />

代替

  <input type='file' accept='image/*;capture=camera' />

关于android - 具有接受 ='image/*;capture=camera' 选项的 android phonegap 应用程序不支持输入类型文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25563811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com