![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web文件下载
从兄
这个作者很懒,什么都没留下…
展开
-
【hyperf】PhpSpreadsheet导出带图片数据,多图片.xlsx文件
代码】【hyperf】PhpSpreadsheet导出带图片数据,多图片.xlsx文件。原创 2022-07-15 12:22:56 · 1164 阅读 · 1 评论 -
web端a标签文件下载服务端实现下载功能(解决浏览器兼容问题)
后台使用TP public function downloadFile() { $filePath = '文件路径'; $readBuffer = 1024; $allowExt = ['jpeg', 'jpg', 'peg', 'gif', 'zip', 'rar', 'txt']; //检测下载文件是否存在,权限 if (!is_file($filePath) && !is_readable($filePath)) { retu原创 2021-03-11 16:56:52 · 630 阅读 · 0 评论