diff --git a/Entity/File.php b/Entity/File.php index f2677b1..7287f00 100644 --- a/Entity/File.php +++ b/Entity/File.php @@ -359,7 +359,7 @@ public function preUpload() { $this->preview_path = null; - if ($this->extension == "pdf") { + if (strtolower($this->extension) == "pdf") { if (extension_loaded('Imagick')) { $this->preview_path = $this->path . '.' . $this->preview_format; $this->_pdf_do = true;