mirror of
https://github.com/friendica/friendica
synced 2025-01-09 13:24:42 +00:00
Merge pull request #14308 from annando/fix-upload
Fix fatal error on upload
This commit is contained in:
commit
76bf2fa6ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue