diff --git a/src/File/FileService.php b/src/File/FileService.php index b12e74f..baf2eb0 100644 --- a/src/File/FileService.php +++ b/src/File/FileService.php @@ -79,7 +79,10 @@ class FileService throw new LucentException("File $filename not uploaded"); } - $this->createTemplates($disk, $path, $file); + if($this->isImage($mimetype)){ + $this->createTemplates($disk, $path, $file); + } + list($width, $height) = $this->isImage($mimetype) ? getimagesize($file) : [0, 0]; $recordFile = new RecordFile(