ResponseHeaderBag::makeDisposition()

string makeDisposition(string $disposition, string $filename, string $filenameFallback = '')

Generates a HTTP Content-Disposition field-value.

Parameters

string $disposition One of "inline" or "attachment"
string $filename A unicode string
string $filenameFallback A string containing only ASCII characters that is semantically equivalent to $filename. If the filename is already ASCII, it can be omitted, or just copied from $filename

Return Value

string A string suitable for use as a Content-Disposition field-value

Exceptions

InvalidArgumentException

See also

RFC 6266
doc_Symfony
2016-10-28 06:30:34
Comments
Leave a Comment

Please login to continue.