html - iOS 在音频上传时使用“捕获”HTML 属性崩溃
问题描述
输入 html 可以正确打开用户的音频上传选项——但不显示记录选项。
<input type="file" name="audio_upload" accept="audio/*" required />
当我添加capture
属性时,它会使我的浏览器在 iOS 上崩溃。它不会在 Android 上执行此操作:
<input type="file" name="audio_upload" accept="audio/*" capture required />
这是您自己尝试的代码片段:
<input type="file" name="audio_upload" accept="audio/*" required />
<input type="file" name="audio_upload" accept="audio/*" capture required />
我在我的 iPhone 11 上试过,它在 safari 上崩溃了。我的朋友也尝试过,但它在他的 iPhone 6s 上崩溃了。
我只尝试了我的 android s7 edge 并没有崩溃。
这是同一个错误吗?https://bugs.webkit.org/show_bug.cgi?id=202039
我是否试图做一些不应该被允许的事情?
谢谢
解决方案
推荐阅读
- php - 在php中查找每个数字在数组中的位数
- r - 如何根据特定日期列排名正确总结行?
- r - 将两个不同数据框中的 2 列相乘,用公因子匹配行
- rust - 自动格式化 Vec
或 [u8; N] 作为十六进制字符串 - python - Top2Vec 预训练嵌入模型不起作用
- html - 如何让我的 html 网站显示我所在的页面路径?
- asp.net-mvc - 如何在 C# 中将 Base64 字符串转换为文件(Docs)并将其保存在服务器中?
- javascript - 从控制器(Laravel)返回结果,但不受 jquery 代码的影响
- javascript - 将 isSubMatrixFull 函数从 Python 转换为 JS
- gpu - 在 slurm 作业脚本中设置 GPU 计算能力的约束