码迷,mamicode.com
首页 > 其他好文 > 详细

ci 文件类型错误xlsx

时间:2018-09-08 11:43:23      阅读:228      评论:0      收藏:0      [点我收藏+]

标签: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’),

ci 文件类型错误xlsx

标签:nbsp   config   dos   open   str   off   load   文件   导入   

原文地址:https://www.cnblogs.com/zhangxiangdong/p/9608055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!