fix extension check
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user