diff --git a/application/Espo/EntryPoints/Image.php b/application/Espo/EntryPoints/Image.php index 1d7aae5d12..0acbf0b434 100644 --- a/application/Espo/EntryPoints/Image.php +++ b/application/Espo/EntryPoints/Image.php @@ -184,7 +184,7 @@ class Image implements EntryPoint $cacheFilePath = "data/upload/thumbs/{$sourceId}_{$size}"; if ($useCache && $this->fileManager->isFile($cacheFilePath)) { - return $cacheFilePath; + return $this->fileManager->getContents($cacheFilePath); } $filePath = $this->entityManager->getRepository('Attachment')->getFilePath($attachment);