Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpfup-require-camera.js: Fixed issue with some Android Phones. #885

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2700871854/71092

Summary

When using the Require Camera for Uploads snippet and a restriction is set on a field (ex: jpg, png, pdf), Android phones will allow the user to select images from the camera roll, even though they shouldn't be allowed to. This is not the case with iPhones.

This seems more of like something because of a recent update for Chrome Android: https://stackoverflow.com/questions/77876374/html-input-type-file-not-working-to-pull-up-camera-for-pixel-android-14-comb

As a fix, we are adding the accept attribute can help restrict it to images from the camera.

Loom walkthrough with demo of the fix (tested on a Pixel7 via browserstack):
https://www.loom.com/share/9fdffe90df88495888b5b3e7c38edac6

@saifsultanc saifsultanc added the bug Something isn't working label Sep 9, 2024
@saifsultanc saifsultanc merged commit a9953b9 into master Sep 10, 2024
4 checks passed
@saifsultanc saifsultanc deleted the saif/fix/71092-fix-android-issue branch September 10, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants