diff --git a/system/Models/ProcessFile.php b/system/Models/ProcessFile.php index 6912956..c5c2ad7 100644 --- a/system/Models/ProcessFile.php +++ b/system/Models/ProcessFile.php @@ -38,7 +38,7 @@ class ProcessFile extends ProcessAssets $path = $this->tmpFolder . $this->getFullName(); - if(file_put_contents($path, $file)) + if($file !== false && file_put_contents($path, $file["file"])) { $size = filesize($path); $size = $this->formatSizeUnits($size); @@ -162,4 +162,4 @@ class ProcessFile extends ProcessAssets return false; } -} \ No newline at end of file +}