private function setHeaderContentType()
    {
        $fileName = basename( $this->fileName );
        if ( $this->contentDisposition !== null && $this->contentDisposition->fileName !== null )
        {
            $fileName = $this->contentDisposition->fileName;
        }

        $this->setHeader( 'Content-Type',
                          $this->contentType . '/' . $this->mimeType . '; ' . 'name="' . $fileName . '"' );
    }
private function setHeaderContentType()
    {
        $fileName = basename( $this->fileName );
        if ( $this->contentDisposition !== null && $this->contentDisposition->fileName !== null )
        {
            $fileName = $this->contentDisposition->fileName;
        }

        $this->setHeader( 'Content-Type',
                          $this->contentType . '/' . $this->mimeType . '; ' . 'name="' . $fileName . '"' );
    }
private function setHeaderContentType ( ) { $ fileName = basename ( $ this -> fileName ) ; if ( $ this -> contentDisposition !== null && $ this -> contentDisposition -> fileName !== null ) { $ fileName = $ this -> contentDisposition -> fileName ; } $ this -> setHeader ( 'Content-Type' , $ this -> contentType . '/' . $ this -> mimeType . '; ' . 'name="' . $ fileName . '"' ) ; }
Sets the Content-Type header.

Based on the contentType, mimeType and fileName.
Sets the Content - Type header .