update file name
This commit is contained in:
parent
e7b7e07d98
commit
9ec4ca6050
|
@ -53,7 +53,7 @@ class EventController extends AbstractController
|
||||||
return new BinaryFileResponse($src, 200, [
|
return new BinaryFileResponse($src, 200, [
|
||||||
'Content-Type' => 'application/octect-stream',
|
'Content-Type' => 'application/octect-stream',
|
||||||
'Content-Length' => filesize($src),
|
'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',
|
'Content-Transfer-Encoding' => 'binary',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue