【问题标题】:file input - accept image from camera or gallery on android文件输入 - 接受来自安卓相机或画廊的图像
【发布时间】:2016-06-12 17:36:22
【问题描述】:

我的网站中有接受文件输入的表单。输入代码在这里:

<input type="file" accept="image/*" capture/>

当我使用 google chrome for android 在我的 note 4 上运行此程序时,我只能选择要从中添加图像的相机应用程序。我无法选择使用图库或照片中的图片。

在带有 Safari 的 iPhone 中,它可以完美运行。它允许我从画廊或相机中进行选择。什么不在 google chrome for android 中?我错过了什么?

【问题讨论】:

    标签: android html google-chrome html-input


    【解决方案1】:

    如果您使用的是 Android 4.4 (Kit Kat),那么这是一个已知问题: Issue 62220

    您可以按照建议的解决方法:HTML file input in android webview (android 4.4, kitkat)

    【讨论】:

      【解决方案2】:

      在 Galaxy S6(运行 Android 5.1)和 Chrome 48 上,我将相机和文档作为操作列表。 您运行的是哪个 Android 和 Chrome 版本?

      【讨论】:

        猜你喜欢
        • 2013-04-29
        • 2017-02-25
        • 1970-01-01
        • 2015-03-03
        • 2017-03-03
        • 1970-01-01
        • 2018-10-08
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多