From 5925bc8a65146c15b3d9a2cdd45b9cda14000ee2 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sat, 14 Jul 2012 12:33:03 +0100 Subject: [PATCH] Extended IOFactory list of file extensions matched to Readers --- Classes/PHPExcel/IOFactory.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Classes/PHPExcel/IOFactory.php b/Classes/PHPExcel/IOFactory.php index ad2d6fd4..30762c1b 100644 --- a/Classes/PHPExcel/IOFactory.php +++ b/Classes/PHPExcel/IOFactory.php @@ -225,20 +225,24 @@ class PHPExcel_IOFactory if (isset($pathinfo['extension'])) { switch (strtolower($pathinfo['extension'])) { - case 'xlsx': + case 'xlsx': // Excel (OfficeOpenXML) Spreadsheet + case 'xlsm': // Excel (OfficeOpenXML) Macro Spreadsheet (macros will be discarded) + case 'xltx': // Excel (OfficeOpenXML) Template + case 'xltm': // Excel (OfficeOpenXML) Macro Template (macros will be discarded) $extensionType = 'Excel2007'; break; - case 'xls': - case 'xlsm': + case 'xls': // Excel (BIFF) Spreadsheet + case 'xlt': // Excel (BIFF) Template $extensionType = 'Excel5'; break; - case 'ods': + case 'ods': // Open/Libre Offic Calc + case 'ots': // Open/Libre Offic Calc Template $extensionType = 'OOCalc'; break; case 'slk': $extensionType = 'SYLK'; break; - case 'xml': + case 'xml': // Excel 2003 SpreadSheetML $extensionType = 'Excel2003XML'; break; case 'gnumeric':