protected function resolveDispositionHeaderFilename($filename)
    {
        $userAgent = $this->request->headers->get('User-Agent');

        if (preg_match('#MSIE|Safari|Konqueror#', $userAgent)) {
            return "filename=".rawurlencode($filename);
        }

        return "filename*=UTF-8''".rawurlencode($filename);
    }
protected function resolveDispositionHeaderFilename($filename)
    {
        $userAgent = $this->request->headers->get('User-Agent');

        if (preg_match('#MSIE|Safari|Konqueror#', $userAgent)) {
            return "filename=".rawurlencode($filename);
        }

        return "filename*=UTF-8''".rawurlencode($filename);
    }
protected function resolveDispositionHeaderFilename ( $ filename ) { $ userAgent = $ this -> request -> headers -> get ( 'User-Agent' ) ; if ( preg_match ( '#MSIE|Safari|Konqueror#' , $ userAgent ) ) { return "filename=" . rawurlencode ( $ filename ) ; } return "filename*=UTF-8''" . rawurlencode ( $ filename ) ; }
Algorithm inspired by phpBB3
Algorithm inspired by phpBB3