文件输入 - 接受来自 android 相机或画廊的图像

ufk*_*ufk 5 html android google-chrome html-input

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

<input type="file" accept="image/*" capture/>
Run Code Online (Sandbox Code Playgroud)

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

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

Nem*_*sis 2

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

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