[eluser]Andrewkha[/eluser]
Hello!
I want to allow uploading both xls and xlsx files.
I have the following code in the controller:
Code:
$config['allowed_types'] = 'xls|xlsx';
and the following definitions in the mime config:
Code:
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel', 'application/vnd.ms-office', 'application/vnd.ms-excel.12'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-office', 'application/vnd.ms-excel.12'),
Uploading xls works well. But when I try to upload xlsx I get Wrong file type error.
What's wrong?