苹果浏览器 14(macOS)。 select 无法上传 .webp 文件
Safari 14 (macOS). It's impossible to select a .webp file for uploading
有图片上传的输入文件,接受图片格式列表:
<input accept="image/jpg, image/jpeg, image/gif, image/png, image/webp, image/bmp" type="file">
当我尝试在 Safari 14 (macOS) 中上传 .webp 文件时,无法选择该文件 (screenshot, .webp file)。
为什么会这样?
我是否应该为 Safari 指定其他内容以接受 .webp 文件?
注.
如果我删除 accept
属性,.webp 文件将变为可选。
好的,它适用于添加到 accept
属性的文件扩展名:
<input accept=".webp" type="file">
有图片上传的输入文件,接受图片格式列表:
<input accept="image/jpg, image/jpeg, image/gif, image/png, image/webp, image/bmp" type="file">
当我尝试在 Safari 14 (macOS) 中上传 .webp 文件时,无法选择该文件 (screenshot, .webp file)。
为什么会这样? 我是否应该为 Safari 指定其他内容以接受 .webp 文件?
注.
如果我删除 accept
属性,.webp 文件将变为可选。
好的,它适用于添加到 accept
属性的文件扩展名:
<input accept=".webp" type="file">