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

file_upload 指定扩展名 过滤功能异常 无法选中需要的文件 #664

Open
Dfrog opened this issue Nov 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Dfrog
Copy link

Dfrog commented Nov 8, 2024

BUG描述
制定录音文件,的文件上传功能,在手机浏览器上,工作异常

复现步骤

uploaded_file = file_upload("上传一个录音文件", accept=".m4a")
测试结果

苹果手机浏览器 可以选择录音文件
安卓 chrome 浏览器 无法选择(m4a录音文件是灰色的,无法选中)

uploaded_file = file_upload("上传一个录音文件", accept="audio/*")
测试结果
安卓 chrome浏览器能选 m4a 录音文件
苹果浏览器 无法选择 (音频文件灰色,无法选中)

uploaded_file = file_upload("上传一个录音文件")
去掉过滤,安卓和苹果浏览器,都正常

环境信息

  • 操作系统及版本:
    安卓14 Chrome 130.0.6723.86
    苹果 IOS 17.7 Chrome 130.0.6723.90

  • Python版本: 使用 python3 --version
    python3.11

  • PyWebIO版本: 使用 python3 -c "import pywebio;print(pywebio.__version__)" 查看
    1.8.3

@Dfrog Dfrog added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant