From 6d288f1b9e65bd7502c32e8a165c5a5040c5e6fc Mon Sep 17 00:00:00 2001 From: Carlos Bravo <37012961+cbravobernal@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:44:32 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Ensure=20HEIC=20files=20selectable=20?= =?UTF-8?q?from=20=E2=80=9CUpload=E2=80=9D=20button=20(#66292)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c5921d766c143ef6774c827c8c2f6322b2b26b6b. --- packages/components/src/form-file-upload/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/components/src/form-file-upload/index.tsx b/packages/components/src/form-file-upload/index.tsx index 66f0b2ea6d648..0600e47d7324c 100644 --- a/packages/components/src/form-file-upload/index.tsx +++ b/packages/components/src/form-file-upload/index.tsx @@ -47,12 +47,6 @@ export function FormFileUpload( { { children } ); - // @todo: Temporary fix a bug that prevents Chromium browsers from selecting ".heic" files - // from the file upload. See https://core.trac.wordpress.org/ticket/62268#comment:4. - // This can be removed once the Chromium fix is in the stable channel. - const compatAccept = !! accept?.includes( 'image/*' ) - ? `${ accept }, image/heic, image/heif` - : accept; return (
@@ -62,7 +56,7 @@ export function FormFileUpload( { ref={ ref } multiple={ multiple } style={ { display: 'none' } } - accept={ compatAccept } + accept={ accept } onChange={ onChange } onClick={ onClick } data-testid="form-file-upload-input"