niceday 发表于 2014-7-19 00:58:56

使用CI上传excel文件后缀.xlsx

         为什么上传后缀为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',是一致的。
      求大神帮忙!


yuvista 发表于 2014-7-19 11:08:08

你没用flash 上传吧

spt119 发表于 2014-7-20 22:16:15

请检查config目录下mimes文件中的mime设置。

niceday 发表于 2014-7-23 13:08:03

yuvista 发表于 2014-7-19 11:08
你没用flash 上传吧

没有

niceday 发表于 2014-7-23 13:18:35

spt119 发表于 2014-7-20 22:16
请检查config目录下mimes文件中的mime设置。

谢谢,问题已经解决了,参考:http://ellislab.com/forums/viewthread/204725/

x-xiong 发表于 2016-7-7 18:06:59

niceday 发表于 2014-7-23 13:18
**** 作者被禁止或删除 内容自动屏蔽 ****

我也遇到你这个问题,你是怎么解决的,给个答案呗,谢谢
页: [1]
查看完整版本: 使用CI上传excel文件后缀.xlsx