From ce5815d9b3e99c99b75eace703e52d2b236b6392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devesa=20Agust=C3=ADn?= Date: Wed, 8 Jan 2020 12:27:55 -0300 Subject: [PATCH] change appliation/config.php for webp mime --- application/config/mimes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/config/mimes.php b/application/config/mimes.php index 7aa5c9e4e70..9c76b87f15d 100644 --- a/application/config/mimes.php +++ b/application/config/mimes.php @@ -74,9 +74,9 @@ 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), 'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'), 'gif' => 'image/gif', - 'jpeg' => array('image/jpeg', 'image/pjpeg'), - 'jpg' => array('image/jpeg', 'image/pjpeg'), - 'jpe' => array('image/jpeg', 'image/pjpeg'), + 'jpeg' => array('image/jpeg', 'image/pjpeg','image/webp'), + 'jpg' => array('image/jpeg', 'image/pjpeg','image/webp'), + 'jpe' => array('image/jpeg', 'image/pjpeg','image/webp'), 'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), 'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), @@ -140,6 +140,7 @@ 'f4v' => array('video/mp4', 'video/x-f4v'), 'flv' => 'video/x-flv', 'webm' => 'video/webm', + 'webp' => 'image/webp', 'aac' => array('audio/x-aac', 'audio/aac'), 'm4u' => 'application/vnd.mpegurl', 'm3u' => 'text/plain',