Safari adding .html to download

前端 未结 6 1498
南旧
南旧 2021-02-19 07:17

I have a little function, that creates .xls document(using PHPexcel) and then sends it to php://output. Then user download it.
Everything works fine, except that safari on

6条回答
  •  无人及你
    2021-02-19 07:55

    You can try this header:

    header('Content-type: application/ms-excel');
    

    or check http://www.solutionoferror.com/php/phpexcel-not-downloading-in-mobile-safari-81107.asp .

提交回复
热议问题