[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath

This commit is contained in:
2021-04-29 20:42:26 +00:00
parent aad4bddedd
commit d11615ded6
2 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ class Avatar extends Controller
if ($encoding_user == 'base64') {
$data_user = base64_decode($data_user);
$tempfile = new TemporaryFile('avatar');
$path = $tempfile->getPath();
$path = $tempfile->getRealPath();
file_put_contents($path, $data_user);
$sfile = new SymfonyFile($path);
} else {