[wp-trac] [WordPress Trac] #65297: HEIC/HEIF MIME Type Mapping Is Inaccurate
WordPress Trac
noreply at wordpress.org
Thu May 21 09:42:42 UTC 2026
#65297: HEIC/HEIF MIME Type Mapping Is Inaccurate
--------------------------+-----------------------------
Reporter: modi2918 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The MIME type map acknowledges that HEIC, HEIF, HEICS, and HEIFS files are
not reliably distinguished by extension:
// TODO: Needs improvement. All images with the following mime types seem
to
// have .heic file extension.
'heic' => 'image/heic',
'heif' => 'image/heif',
'heics' => 'image/heic-sequence',
'heifs' => 'image/heif-sequence',
Additionally, in the validation code, image/heif, image/heic-sequence, and
image/heif-sequence files all get their extension normalized to .heic,
which is inaccurate for sequence files and HEIF files that use different
container types. This can cause upload validation failures and incorrect
file extension assignment.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65297>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list