Returns a BinaryFileResponse object with original or customized file name and disposition header.
protected file ( SplFileInfo | string $file, string | null $fileName = null, string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT ) : |
||
$file | SplFileInfo | string | File object or path to file to be sent as response |
$fileName | string | null | File name to be sent to response or null (will use original file name) |
$disposition | string | Disposition of response ("attachment" is default, other type is "inline") |
리턴 |