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:
commit
6d4f0d2db3
@ -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…
x
Reference in New Issue
Block a user