Add AVIF and HEIF MIME types to Config/Mimes.php |
Hi. I am using \CodeIgniter\Files\File\guessExtension() to identify, if a file is an image and this function is also based on MIME types. I realized, an AVIF type is not in the Config\Mimes.php file. This image format is included in Mozilla's common image file types. As it is more and more popular now, what about including it?
AVIF MIME types (Wikipedia / right column): Code: image/avif There is also missing HEIF type, which is commonly used on Apple devices. It is not open format (HEIF patent licensing), but as there are CDR and AI formats, it should not be a problem. This format is also widely used, so what about including it too? HEIF MIME types (Wikipedia / right column): Code: image/heif, image/heif-sequence; Yes, there is an image/avif in HEIF too, but this should be an identifier for AVIF format (Wikipedia is not perfect). |
Messages In This Thread |
Add AVIF and HEIF MIME types to Config/Mimes.php - by Muzikant - 10-18-2023, 01:37 AM
RE: Add AVIF and HEIF MIME types to Config/Mimes.php - by InsiteFX - 10-18-2023, 09:48 PM
RE: Add AVIF and HEIF MIME types to Config/Mimes.php - by Muzikant - 10-20-2023, 02:34 AM
RE: Add AVIF and HEIF MIME types to Config/Mimes.php - by InsiteFX - 10-20-2023, 09:41 PM
RE: Add AVIF and HEIF MIME types to Config/Mimes.php - by Muzikant - 10-21-2023, 02:45 AM
RE: Add AVIF and HEIF MIME types to Config/Mimes.php - by Moon757 - 10-26-2023, 11:35 PM
|