From 804acae44b260d5bcfa229e86717cb5375cf8860 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 13 Sep 2022 20:51:34 +0300 Subject: [PATCH] fix extension check --- application/Espo/Services/Attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();