target image folder on mobile (Android or IOS) when html input[type="file"] is clicked
08:01 02 Sep 2015

I have this problem and can't figure out:

I have a simple input


It works perfectly on desktop browsers but when I click it from a mobile device it opens a choice between:

  1. File system or Document folder
  2. Camera
  3. Video
  4. Sounds

I would like to redirect the browser to the image folder of the mobile device like Facebook does.

Is it possible? Thank you!

EDIT 1:

putting accept="image/*" changed from (image/png,image/jpg,image/jpeg,image/gif) changed a little bit the situation avoiding choosing audio and video.

Now on Android 5.02 this is what I see:
screenshot

while on Android 4.42 I see this:
screenshot2

What I want is getting the same choices as Android 4.4.2 in every device (iOS too).

Or if is possible doing like Facebook which goes straight to the images global folder.

It seems to be a Android 5 bug, anyone can help me?

Fiddle

Thanks!

javascript html input