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

1

3

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?

Sinistrocular answered 26/1 at 12:10 Comment(1)
I fixed the problem in this answer: https://mcmap.net/q/1480844/-android-14-photo-picker-camera-tile-removed-from-google-chromeCooksey
P
2

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.

Pitzer answered 31/1 at 14:57 Comment(6)
If the link to the bug-report is public, could you provide this as well in the answer?Everson
Thank you for the answer, it was useful. It definetly looks like a Chrome + Android 14 bug. Adding text/plain could be a temporary workaround but it is not ideal. We tested it and it does show the two options (camera and file picker). As @Everson pointed, would you be able to provide the link to the Google bug-report? It would be useful for tracking. Thank youSinistrocular
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Muscolo
The bug tracker link is unfortunately not public. Sorry.Pitzer
This is the bug report: issuetracker.google.com/issues/317289301Kaykaya
Note that the workaround of adding text/plainwill give you a file picker, not the image gallery as used to be the case.Thursday

© 2022 - 2024 — McMap. All rights reserved.