Input with accept="image/*" does not allow selecting HEIC images
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: github, Assigned: gregp)
Details
Attachments
(1 file, 1 obsolete file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Steps to reproduce:
Create an input element like the following:
<input type="file" name="images" multiple accept="image/*" />
And then try using it to select a file with the .HEIC extension from your local filesystem. (If you don't have one, just rename any file - the file contents don't matter)
Example: https://codesandbox.io/p/sandbox/image-doesnt-include-heic-n34y79
Actual results:
The HEIC images are greyed out and not selectable. (Only tested on macOS 14.1)
Expected results:
HEIC images should be selectable, since they have MIME-type image/heic
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Form Controls' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:jwatt, could you have a look please?
For more information, please visit BugBot documentation.
Comment 3•2 years ago
|
||
Can reproduce on Sonoma:
Safari Technology Preview 183: Highlights heic files as selectable for image/* and image/*,image/heic
Firefox Nightly 122 and Chrome Canary 122: Highlights heic files only if image/heic is explicitly specified
| Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 years ago
|
||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Comment 8•2 years ago
|
||
I have reproduced this issue in Release v122.0 on a Mac OS 11. The first file input element would not accept a .HEIC image, while the second would. I have verified the fix in Beta v123.0b5 and Nightly v124.0a1. The behavior seen in Windows 10 would also be enhanced because the .HEIC images would not need to be "forced" by choosing the "all file types" from the drop-down anymore.
Updated•2 years ago
|
Description
•