Fixed XF\Http\Upload not extendable

digitalpoint

Well-known member
Affected version
2.0.7
In the XF\Http\Request class, it would be nice if the returned Upload class could be extended. Maybe an oversight? Currently it's just initiating like a normal PHP class:

PHP:
$output[$idx] = new Upload($file['tmp_name'], $file['name'], $file['error']);
 
Went up a "class level" to XF\Attachment\Manipulator and the same thing... XF\Pub\Controller\Attachment doesn't extend the manipulator class. boo. :)

PHP:
$manipulator = new \XF\Attachment\Manipulator($handler, $this->getAttachmentRepo(), $context, $hash);
 
Back
Top Bottom