diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index 0ac55ba928c..fba042f0e99 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -483,6 +483,9 @@ abstracts the hard work behind a simple API:: $response->headers->set('Content-Disposition', $d); +Then you must set the file's content as usual, for example by using +:method:`Symfony\\Component\\HttpFoundation\\Response::setContent`. + Alternatively, if you are serving a static file, you can use a :class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`::