Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c507dc6031 |
@@ -79,7 +79,10 @@ class FileService
|
|||||||
throw new LucentException("File $filename not uploaded");
|
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];
|
list($width, $height) = $this->isImage($mimetype) ? getimagesize($file) : [0, 0];
|
||||||
$recordFile = new RecordFile(
|
$recordFile = new RecordFile(
|
||||||
|
|||||||
Reference in New Issue
Block a user