Skip to content

Commit

Permalink
Add JPEG as supported type
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Nguyen committed Jan 19, 2024
1 parent a9c555e commit 42d6cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
Expand Down
1 change: 1 addition & 0 deletions tests/converter_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 42d6cbd

Please sign in to comment.