public function viewAction(Request $request, SakonninFile $file, $access)
    {
        // TODO: Add access control.
        $path = $this->getFilePath();
        $response = new BinaryFileResponse($path . "/" . $file->getStoredAs());
        return $response;
    }
public function viewAction(Request $request, SakonninFile $file, $access)
    {
        // TODO: Add access control.
        $path = $this->getFilePath();
        $response = new BinaryFileResponse($path . "/" . $file->getStoredAs());
        return $response;
    }
public function viewAction ( Request $ request , SakonninFile $ file , $ access ) { // TODO: Add access control. $ path = $ this -> getFilePath ( ) ; $ response = new BinaryFileResponse ( $ path . "/" . $ file -> getStoredAs ( ) ) ; return $ response ; }
View a file.

@Route("/{id}/view", name="file_view", methods={"GET"})
View a file .