mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02: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…
Add table
Add a link
Reference in a new issue