/** * View a file * */ public function viewAction() { $file = $this->fileService->getFile($this->_getParam('id')); $this->fileService->streamFile($file); }