/** * @param IFile */ public function actionFile(IFile $file) { $this->sendResponse(new \Nette\Application\Responses\FileResponse( $file->getFileinfo()->getRealPath(), //$file->getContent(), $file->getFilename(), $file->getMimeType() )); $this->terminate(); }