Sets a default set of HTTP headers for file downloading purpose.
public setDownloadHeaders ( string $attachmentName, string $mimeType = null, boolean $inline = false, integer $contentLength = null ) | ||
$attachmentName | string | the attachment file name |
$mimeType | string | the MIME type for the response. If null, `Content-Type` header will NOT be set. |
$inline | boolean | whether the browser should open the file within the browser window. Defaults to false, meaning a download dialog will pop up. |
$contentLength | integer | the byte length of the file being downloaded. If null, `Content-Length` header will NOT be set. |