【问题标题】:input type file is not supported in android phonegap app with accept='image/*;capture=camera' option带有 accept='image/*;capture=camera' 选项的 android phonegap 应用程序不支持输入类型文件
【发布时间】:2014-08-29 07:46:57
【问题描述】:

我使用 phonegap 创建了一个应用,需要从图库、相机等上传图片。

我正在使用

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

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

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

谢谢, 维杰·巴恩瓦尔

【问题讨论】:

标签: android ios iphone cordova camera


【解决方案1】:

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

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

而不是

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

【讨论】:

    猜你喜欢
    • 2018-04-08
    • 1970-01-01
    • 2014-07-17
    • 1970-01-01
    • 2020-06-22
    • 2022-10-17
    • 1970-01-01
    • 1970-01-01
    • 2019-11-10
    相关资源
    最近更新 更多