How to use the CSV MIME-type?

前端 未结 4 775
感情败类
感情败类 2020-11-27 03:11

In a web application I am working on, the user can click on a link to a CSV file. There is no header set for the mime-type, so the browser just renders it as text. I would

4条回答
  •  一生所求
    2020-11-27 03:37

    With Internet Explorer you often have to specify the Pragma: public header as well for the download to function properly..

    header('Pragma: public');
    

    Just my 2 cents..

提交回复
热议问题