From 42d6cbdd9ccf86df5f4141b5975053de43540e94 Mon Sep 17 00:00:00 2001 From: Nathan Nguyen Date: Fri, 19 Jan 2024 13:09:39 +1100 Subject: [PATCH] Add JPEG as supported type --- classes/converter.php | 1 + tests/converter_test.php | 1 + 2 files changed, 2 insertions(+) diff --git a/classes/converter.php b/classes/converter.php index 5ce9a09..e1ba039 100644 --- a/classes/converter.php +++ b/classes/converter.php @@ -53,6 +53,7 @@ class converter implements \core_files\converter_interface { 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'png' => 'image/png', 'jpg' => 'image/jpeg', + 'jpeg' => 'image/jpeg', 'txt' => 'text/plain', 'gif' => 'image/gif', ]; diff --git a/tests/converter_test.php b/tests/converter_test.php index 7037807..1984790 100644 --- a/tests/converter_test.php +++ b/tests/converter_test.php @@ -569,6 +569,7 @@ public function supports_provider() ['txt', true], ['TXT', true], ['png', true], ['PNG', true], ['jpg', true], ['JPG', true], + ['jpeg', true], ['JPEG', true], ['gif', true], ['GIF', true], ['pdf', false], ['PDF', false], ['mp3', false], ['MP3', false],