1
0
mirror of https://github.com/typemill/typemill.git synced 2025-03-14 17:19:39 +01:00

Merge pull request #237 from ipk-it-solutions-e-u/develop

bugfix: #236 File-Upload changes files: only write content to file no…
This commit is contained in:
trendschau 2020-12-03 11:15:56 +01:00 committed by GitHub
commit 6d4f0d2db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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