Created
March 20, 2012 10:49
-
-
Save craue/2134052 to your computer and use it in GitHub Desktop.
sending a download with custom filename in Symfony2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return new Response( | |
$content, | |
200, | |
array( | |
'Content-Type' => $mimeType, | |
'Content-Disposition' => sprintf('attachment; filename="%s"', $filename), | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment