Skip to content

Chrome: Unable to upload HEIC image through post editor #66291

@ironprogrammer

Description

@ironprogrammer

Description

Using Chrome's built-in upload functionality when inserting an HEIC image with the post editor, files of type HEIC are disabled for selection. However, files can be added through drag-n-drop on the Image block, or added through the media library either with the upload or multi-file feature. This issue occurs regardless of server-side HEIC support (i.e. availability of ImageMagick.)

Originally reported at WordPress/twentytwentyfive#583, then https://core.trac.wordpress.org/ticket/62268 for tracking with the 6.7 release. This issue is being reported upstream to GB.

Expected behavior

Though Chrome cannot display HEIC natively, it should be an allowed filetype in the browser uploader. This is consistent with 6.7 support for this media type.

Step-by-step reproduction instructions

  1. In Chrome, add a new post.
  2. Add an Image block, and select "Upload".
  3. 🐞 Observe that HEIC images cannot be selected for upload.

Screenshots, screen recording, code snippet

HEIC images are not selectable in upload dialog in Chrome

Environment info

  • Hardware: MacBook Pro Apple M1 Pro
  • OS: macOS 14.6.1
  • Browser: Google Chrome 130.0.6723.59 (also confirmed working as expected on Safari 17.6, Mozilla Firefox 131.0.3)
  • Tested in local install and Playground
  • WordPress 6.7 trunk / GB not installed

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions