public function stream_write($data) { if ($this->upload === null) { return false; } $this->upload->addContent($data); $result = StringHelper::byteLength($data); $this->pointerOffset += $result; return $result; }