How to upload HEIC files in WordPress

To upload HEIC format files in WordPress, use the following function

function allow_upload_heic( $mimes ) { 
$mimes['heic'] = 'image/heic'; 
$mimes['heic-sequence'] = 'image/heic-sequence'; 
return $mimes; 
} 
add_ filter( 'upload_mimes', 'allow_upload_heic' );

This code adds the HEIC format and HEIC sequence as uploadable file formats.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top