2016-11-08 85 views
0

我在报告文件夹.xls文件下载.xls文件的href

<a href="http://website.com/report/salesList.xls" download> 
    <input type="button" class="btn btn-success" value="Download Report"> 
</a> 

不能正常工作。

相反:

<a href="http://website.com/images/123.png" download> 
    <input type="button" class="btn btn-success" value="Download Image"> 
</a> 

是工作。

需要为.xls格式文件提供任何权限?

谢谢。

+0

你检查了权限吗? – Nurjan

+0

权限'0600'在cPanel中。 –

+0

对于.xls文件? – Nurjan

回答

0

更改.xls文件的权限,由chmod($file,0644)在您自动生成excel文件的php文件中。

相关问题