mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Fix fatal error on upload
This commit is contained in:
parent
560106bd32
commit
096ea13812
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Upload extends \Friendica\BaseModule
|
|||
$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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue