mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 21:36:05 +03:00
Extended IOFactory list of file extensions matched to Readers
This commit is contained in:
parent
15ccc845da
commit
5925bc8a65
@ -225,20 +225,24 @@ class PHPExcel_IOFactory
|
|||||||
|
|
||||||
if (isset($pathinfo['extension'])) {
|
if (isset($pathinfo['extension'])) {
|
||||||
switch (strtolower($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';
|
$extensionType = 'Excel2007';
|
||||||
break;
|
break;
|
||||||
case 'xls':
|
case 'xls': // Excel (BIFF) Spreadsheet
|
||||||
case 'xlsm':
|
case 'xlt': // Excel (BIFF) Template
|
||||||
$extensionType = 'Excel5';
|
$extensionType = 'Excel5';
|
||||||
break;
|
break;
|
||||||
case 'ods':
|
case 'ods': // Open/Libre Offic Calc
|
||||||
|
case 'ots': // Open/Libre Offic Calc Template
|
||||||
$extensionType = 'OOCalc';
|
$extensionType = 'OOCalc';
|
||||||
break;
|
break;
|
||||||
case 'slk':
|
case 'slk':
|
||||||
$extensionType = 'SYLK';
|
$extensionType = 'SYLK';
|
||||||
break;
|
break;
|
||||||
case 'xml':
|
case 'xml': // Excel 2003 SpreadSheetML
|
||||||
$extensionType = 'Excel2003XML';
|
$extensionType = 'Excel2003XML';
|
||||||
break;
|
break;
|
||||||
case 'gnumeric':
|
case 'gnumeric':
|
||||||
|
Loading…
Reference in New Issue
Block a user