From 9ec4ca6050fa1c127cebc6c89afd690cec5cb63c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 29 Apr 2020 19:51:01 +0200 Subject: [PATCH] update file name --- src/Controller/EventController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/EventController.php b/src/Controller/EventController.php index b933142..e5d7255 100644 --- a/src/Controller/EventController.php +++ b/src/Controller/EventController.php @@ -53,7 +53,7 @@ class EventController extends AbstractController return new BinaryFileResponse($src, 200, [ 'Content-Type' => 'application/octect-stream', 'Content-Length' => filesize($src), - 'Content-Disposition' => sprintf('attachment; filename="%s"', basename($src)), + 'Content-Disposition' => sprintf('attachment; filename="%s_%s"', $snapshot->getDate()->format('Y-m-d'), basename($src)), 'Content-Transfer-Encoding' => 'binary', ]); }