BinaryFileResponse::setFile()

BinaryFileResponse setFile(SplFileInfo|string $file, string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true)

Sets the file to stream.

Parameters

SplFileInfo|string $file The file to stream
string $contentDisposition
bool $autoEtag
bool $autoLastModified

Return Value

BinaryFileResponse

Exceptions

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

Please login to continue.