用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3008|回复: 5
收起左侧

[讨论/交流] 使用CI上传excel文件后缀.xlsx

[复制链接]
发表于 2014-7-19 00:58:56 | 显示全部楼层 |阅读模式
         为什么上传后缀为xlsx的excel文件,会报错:上传excelThe filetype you are attempting to upload is not allowed.
         使用echo $_FILES['userfile']['type'];输出的上传文件类型是:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
与mimes.php文件中的'xlsx'    =>    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',是一致的。
        求大神帮忙!


发表于 2014-7-19 11:08:08 | 显示全部楼层
你没用flash 上传吧
发表于 2014-7-20 22:16:15 | 显示全部楼层
请检查config目录下mimes文件中的mime设置。
 楼主| 发表于 2014-7-23 13:08:03 | 显示全部楼层
yuvista 发表于 2014-7-19 11:08
你没用flash 上传吧

没有
 楼主| 发表于 2014-7-23 13:18:35 | 显示全部楼层
spt119 发表于 2014-7-20 22:16
请检查config目录下mimes文件中的mime设置。

谢谢,问题已经解决了,参考:http://ellislab.com/forums/viewthread/204725/
发表于 2016-7-7 18:06:59 | 显示全部楼层
niceday 发表于 2014-7-23 13:18
**** 作者被禁止或删除 内容自动屏蔽 ****

我也遇到你这个问题,你是怎么解决的,给个答案呗,谢谢

本版积分规则