public function filter($in) { if (!$this->error && !$this->failedEmpty) { $in->confirmUpload(); } return $in; }