Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

file input - accept image from camera or gallery on android

I have Form in my website that accepts a file input. the code for the input is here:

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

When I run this on my note 4 with google chrome for android I get to choose only Camera apps to add the image from. I cannot choose to use image from gallery or photos.

In IPhone with Safari it works perfect. it allows me to choose from gallery or camera. what not in google chrome for android? what am i missing ?

like image 506
ufk Avatar asked Oct 31 '22 08:10

ufk


1 Answers

If you are using Android 4.4 (Kit Kat) then this is a known issue: Issue 62220

You can follow the suggested work arounds: HTML file input in android webview (android 4.4, kitkat)

like image 73
Nemesis Avatar answered Nov 13 '22 19:11

Nemesis