Fix fatal error on upload

pull/14308/head
Michael 2024-07-20 08:27:51 +00:00
parent 560106bd32
commit 096ea13812
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Upload extends \Friendica\BaseModule
$this->return(401, $msg); $this->return(401, $msg);
} }
$newid = Attach::storeFile($tempFileName, $_FILES['userfile']['type'] ?? '', $owner['uid'], $fileName, '<' . $owner['id'] . '>'); $newid = Attach::storeFile($tempFileName, $owner['uid'], $fileName, $_FILES['userfile']['type'] ?? '', '<' . $owner['id'] . '>');
@unlink($tempFileName); @unlink($tempFileName);