summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/SGI.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/SGI.php')
-rw-r--r--lib/private/Preview/SGI.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/Preview/SGI.php b/lib/private/Preview/SGI.php
index 9f392d2252f..3172e8773a3 100644
--- a/lib/private/Preview/SGI.php
+++ b/lib/private/Preview/SGI.php
@@ -28,6 +28,13 @@ class SGI extends Bitmap {
* {@inheritDoc}
*/
public function getMimeType(): string {
- return '/image\/sgi/';
+ return '/image\/(x-)?sgi/';
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getAllowedMimeTypes(): string {
+ return '/image\/(x-)?sgi/';
}
}