BinaryFileResponse::setContentDisposition()

BinaryFileResponse setContentDisposition(string $disposition, string $filename = '', string $filenameFallback = '')

Sets the Content-Disposition header with the given filename.

Parameters

string $disposition ResponseHeaderBag::DISPOSITIONINLINE or ResponseHeaderBag::DISPOSITIONATTACHMENT
string $filename Optionally use this filename instead of the real name of the file
string $filenameFallback A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename

Return Value

BinaryFileResponse
doc_Symfony
2016-10-28 06:06:56
Comments
Leave a Comment

Please login to continue.