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],