public function zipAction(Request $request)
    {
        $filename = basename($request->get('filename'));

        $path = $this->container->getParameter('phlexible_media_manager.temp_dir');
        $filepath = $path.'/'.$filename;

        if (!$filename || !file_exists($filepath)) {
            return $this->createNotFoundException();
        }

        $response = new BinaryFileResponse($filepath, 200, array('Content-Type' => 'application/zip'));
        $response->setContentDisposition(ResponseHeaderBag::DISPOSITION_ATTACHMENT);

        return $response;
    }