From b3b7e2a620622ecf2f0c297517f12238a5a1a9be Mon Sep 17 00:00:00 2001 From: karlmacklin <353806+karlmacklin@users.noreply.github.com> Date: Fri, 7 Dec 2018 12:37:29 +0100 Subject: [PATCH] Add MIME type for WEBP image format The WEBP image format does not yet have an official IANA MIME type definition. However, the same can be said about video/webm which is adopted in a similar width as WEBP. Apache web server, python web server and many more has adopted the MIME type image/webp for the WEBP image format, so it is only logical to assume its validity at the same level as WEBM video. --- src/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions.php b/src/functions.php index 957bfb42..8e6dafe6 100644 --- a/src/functions.php +++ b/src/functions.php @@ -724,6 +724,7 @@ function mimetype_from_extension($extension) 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', + 'webp' => 'image/webp', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff',