ci 文件类型错误xlsx
Posted zhangxiangdong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ci 文件类型错误xlsx相关的知识,希望对你有一定的参考价值。
ci文件上传类检查文件类型时会导入一个 mimes.php 文件
修改 application/config/mines.php
‘xlsx’ => array(‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet’, ‘application/zip’, ‘application/vnd.ms-excel’, ‘application/msword’, ‘application/x-zip’),
将 xlsx value修改成下面这个
‘xlsx’ => array(‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet’, ‘application/zip’, ‘application/vnd.ms-excel’,’application/ms-excel’,’application/x-ms-excel’,’application/x-msexcel’, ‘application/msword’,’application/x-excel’,’application/x-dos_ms_excel’,’application/xls’,’application/x-xls’,’application/excel’,’application/download’,’application/vnd.ms-office’,’application/msword’, ‘application/x-zip’ , ‘application/octet-stream’ , ‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet’),
以上是关于ci 文件类型错误xlsx的主要内容,如果未能解决你的问题,请参考以下文章
如何将excel文件类型(xlsx)与iPhone应用程序相关联
上传file时accept限制文件类型pdfdocdocx jpg pngxls xlsx等格式