/** * Gets the content of this file * * @return string|resource */ public function get() { $this->photo->setFileBase('../photos'); $path = $this->photo->getFilePath('original'); return fopen($path, 'r'); }