[英]download .xls file in php(cpanel) using href
I had .xls file in report folder 我在报表文件夹中有.xls文件
<a href="http://website.com/report/salesList.xls" download>
<input type="button" class="btn btn-success" value="Download Report">
</a>
was not working. 没有工作。
Instead: 代替:
<a href="http://website.com/images/123.png" download>
<input type="button" class="btn btn-success" value="Download Image">
</a>
was working. 在工作。
Need to give any permission for .xls format files? 是否需要授予.xls格式文件的权限?
Thanks. 谢谢。
通过自动生成excel文件的php文件中的chmod($file,0644)
更改.xls
文件的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.