diff --git a/application/Espo/Services/Attachment.php b/application/Espo/Services/Attachment.php index 4002af5e07..7f73d8b5fd 100644 --- a/application/Espo/Services/Attachment.php +++ b/application/Espo/Services/Attachment.php @@ -306,7 +306,7 @@ class Attachment extends Record return; } - $extension = self::getFileExtension($attachment) ?? ''; + $extension = strtolower(self::getFileExtension($attachment) ?? ''); $mimeType = $this->getMimeTypeUtil()->getMimeTypeByExtension($extension) ?? $attachment->getType();