Download a file with an ajax call

前端 未结 5 433
面向向阳花
面向向阳花 2021-01-13 11:25

I am using PHPExcel to read an excel template, populate the data, and ask the user to download the file.

generate_excel.php

$objPHPExcel = PHPExcel_I         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-13 11:40

    I don't think you can download anything by ajax call. Instead of you can generate and save the excel in server (temporary) and show the download link to the user.

提交回复
热议问题