Chrome on Android 14 does not show the option to open the camera when uploading an image

1k Views Asked by At

We have an Angular 13 app and we are using <input type="file" accept="image/*"> to upload an image. Up to Android 13, Chrome showed two options:

  1. Open the camera to take a picture
  2. Select an existing image from the gallery

But on Android 14 Chrome only shows the option to select an existing image, it doesn't show the option to open the camera.

We have seen the issue in differnt device models, such as Google Pixel or Samsung Galaxy, running Android 14.

Both options are shown in Chrome on older Android versions.

Anyone facing the same issue? Has anybody found how to fix it?

1

There are 1 best solutions below

4
On

We have basically the same problem. It occurs without any framework - just plain html:

A) <input type="file" accept="image/*"> will give access to image files only without the option to capture from camera.

B) <input type="file" accept="image/*,text/plain"> DOES give the option to capture from camera, at the same time allows to select ANY file type.


We have observed this only on Android 14 with Chrome + Edge, not with Firefox + Samsung Browser.

This behaviour seems very strange and does not seem to be intended. A bug report was filed to Google back in November 23 but not processed in any way so far.

Due to the userAgent reduction it is unfortunately not even possible to implement B as a workaround for affected devices only.