Skip to content

Commit 77eeb80

Browse files
author
roadiz-ci
committed
Merge tag v2.7.24 into develop
1 parent 27d0c4d commit 77eeb80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Models/BaseDocumentTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ trait BaseDocumentTrait
107107
'application/vnd.oasis.opendocument.text ' => 'word',
108108
'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'powerpoint',
109109
'application/vnd.openxmlformats-officedocument.presentationml.slideshow' => 'powerpoint',
110+
'application/vnd.ms-excel.sheet.macroenabled.12' => 'excel',
110111
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => 'excel',
111112
'application/vnd.openxmlformats-officedocument.spreadsheetml.template' => 'excel',
112113
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'word',
@@ -175,6 +176,7 @@ public function getMountPath(): ?string
175176
public function getShortType(): string
176177
{
177178
$mimeType = (string) $this->getMimeType();
179+
$mimeType = strtolower($mimeType);
178180
if ('' !== $mimeType && isset(static::$mimeToIcon[$mimeType])) {
179181
return static::$mimeToIcon[$mimeType];
180182
}

0 commit comments

Comments
 (0)