最初的做法
代码如下 | |||||||||
|
报错
PHPExcel_Reader_Exception: The filename .1443578799.xlsx is not recognised as an OLE file in ClassesPHPExcelSharedOLERead.php on line 89
( ! ) Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'The filename 1443578799.xlsx is not recognised as an OLE file' in ClassesPHPExcelSharedOLERead.php on line 89
( ! ) PHPExcel_Reader_Exception: The filename 1443578799.xlsx is not recognised as an OLE file in ClassesPHPExcelSharedOLERead.php on line 89
Call Stack
碰到这个问题我们是因为xlsx出错了,可能通过类型判断 解决办法如下
代码如下 | |||
|
这样再操作会发现问题已经解决了。