From 096ea13812f403050bc1ace68bcbd1cc1dbcdcde Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 20 Jul 2024 08:27:51 +0000 Subject: [PATCH] Fix fatal error on upload --- src/Module/Media/Attachment/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Media/Attachment/Upload.php b/src/Module/Media/Attachment/Upload.php index f257fb245c..b973b11a78 100644 --- a/src/Module/Media/Attachment/Upload.php +++ b/src/Module/Media/Attachment/Upload.php @@ -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);