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

uni-file-picker 组件 fileMediatype 为 "all" 时,android的微信浏览器通过相册选择文件时无法触发select事件 #992

Open
elewen opened this issue Mar 5, 2025 · 2 comments

Comments

@elewen
Copy link

elewen commented Mar 5, 2025

uni-file-picker 组件 fileMediatype 设置为 "all" ,auto-upload 为 false 时,android手机的微信内置浏览器在选择文件时可以切换进入相册(符合预期),但是选择相册中的照片时无法触发select事件(不符合预期)

<uni-file-picker
                fileMediatype="all"
                fileExtname="jpg,jpeg,png,pdf"
                mode="grid"
                :limit="4"
                v-model="fileList"
                :auto-upload="false"
                @select="selectFile"
                @delete="deleteFile"
            />
@elewen elewen changed the title uni-file-picker 组件 fileMediatype 为 "all" 时,android的微信浏览器通过相册选择文件时无法触发select时间 uni-file-picker 组件 fileMediatype 为 "all" 时,android的微信浏览器通过相册选择文件时无法触发select事件 Mar 6, 2025
@elewen
Copy link
Author

elewen commented Mar 6, 2025

测试发现基于uni.chooseFile、uniCloud.chooseAndUploadFile实现的文件上传组件都有这个问题,比如 uv-ui 的 uv-upload 上传组件。因此判断根本问题是出在这两个uni方法上。

@elewen
Copy link
Author

elewen commented Mar 6, 2025

测试发现基于uni.chooseFile、uniCloud.chooseAndUploadFile实现的文件上传组件都有这个问题,比如 uv-ui 的 uv-upload 上传组件。因此判断根本问题是出在这两个uni方法上。

此外,这两个方法还会导致android的百度app在选择文件时页面自动刷新

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

No branches or pull requests

1 participant