mirror of
https://github.com/flextype/flextype.git
synced 2025-08-10 23:24:04 +02:00
fix(helpers): fix upload function image processing
This commit is contained in:
@@ -45,9 +45,12 @@ if (! function_exists('upload')) {
|
||||
|
||||
try {
|
||||
$result->confirm();
|
||||
|
||||
|
||||
// If upload file is image, do image file processing
|
||||
if (isset($result->name)) {
|
||||
if ($result->name) {
|
||||
|
||||
$mediaFile = $uploadFolder . '/' . $result->name;
|
||||
|
||||
if (getimagesize($mediaFile)) {
|
||||
imageFile($mediaFile, $settings['process']['image']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user