1
0
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:
Patrick Kaltenböck
2020-12-02 16:57:48 +01:00
parent f59f8b5934
commit 37d1c79d86

View File

@@ -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;
}
}
}