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

[Bug Report] Uploader not showing Camera option #13111

Open
PaulRosca opened this issue Sep 11, 2024 · 0 comments
Open

[Bug Report] Uploader not showing Camera option #13111

PaulRosca opened this issue Sep 11, 2024 · 0 comments

Comments

@PaulRosca
Copy link

Reproduction Link

https://codesandbox.io/p/sandbox/vant-4-issue-template-forked-zsxlxy

Vant Version

4.9.5

Describe the Bug

On mobile, the van-uploader component doesn't show the "camera" option when pressed, this started happening after updating the phone OS.

Now when pressing the uploader we can only choose photos from gallery.

Reproduce Steps

Creating a van-uploader with a modelValue, @update:model-value, multiple and before-read props will cause this behaviour on certain phones/OS versions.

Android version: 14
Chrome version: 128.0.6613.127

Probably related to this problem: https://stackoverflow.com/questions/77876374/html-input-type-file-not-working-to-pull-up-camera-for-pixel-android-14-comb

Creating a regular <input type="file" /> seems to work as expected, i.e showing 3 options (photo camera, video camera and gallery), even though that's what van-uploader is also using behind the hood.

Device / Browser

Motorola moto g23 / Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant