Symfony\Component\HttpFoundation\BinaryFileResponse::setContentDisposition
Sets the Content-Disposition header with the given filename.
Signature
public function setContentDisposition(string
$disposition,
[string
$filename = '',
[string
$filenameFallback = '']] )
Parameters
$disposition
—
string
- ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT
$filename
—
string
- Optionally use this filename instead of the real name of the file
$filenameFallback
—
string
- A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename
Returns
- BinaryFileResponse