bugfix: #236 File-Upload changes files: only write content to file not type
This commit is contained in:
parent
f59f8b5934
commit
37d1c79d86
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue