文件输入 - 在 android 上接受来自相机或图库的图像

file input - accept image from camera or gallery on android

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

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

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

在 IPhone 中与 Safari 一起工作完美。它允许我从画廊或相机中进行选择。 google chrome android 中没有什么?我错过了什么?

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

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