标签:nbsp config dos open str off load 文件 导入
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’),
标签:nbsp config dos open str off load 文件 导入
原文地址:https://www.cnblogs.com/zhangxiangdong/p/9608055.html