I had .xls file in report folder
<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?
Thanks.
通过自动生成excel文件的php文件中的chmod($file,0644)
更改.xls
文件的权限。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.