Firefox does not recognize .xls download (PHP)

0

I have the following headers in a php view

header('Content-Type: application/xls');
header('Content-Disposition: attachment;filename="' .$user[0]. " " .$user[1]. '".xls'); 

with the chrome browser the file is downloaded working correctly but with firefox when downloading, download without format, how could you solve that detail?

I would appreciate the interest.

    
asked by JDavid 02.05.2017 в 16:24
source

1 answer

0

According to Mozilla, the correct Mime is application/vnd.ms-excel . You can see the list 'inCompleta' in Incomplete list of MIME types

    
answered by 25.09.2018 в 23:40