mirror of
https://github.com/typemill/typemill.git
synced 2025-07-24 15:52:05 +02:00
bugfix: #236 File-Upload changes files: only write content to file not type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user