]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error on upload
authorMichael <heluecht@pirati.ca>
Sat, 20 Jul 2024 08:27:51 +0000 (08:27 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 20 Jul 2024 15:45:05 +0000 (15:45 +0000)
src/Module/Media/Attachment/Upload.php

index f257fb245c6110b3b9b11af50463d2d18d3db6a2..b973b11a781e58c3d88eb8d19ac3e928b451179a 100644 (file)
@@ -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);