EllisLab/CodeIgniter — Issue #689: Upload problem .docx and .xlsx
Author: MVUG
Created: 2011-11-22 12:54:32+00:00
State: open

Hi guys,

I discovered a problem with uploading .docx and .xlsx files. When uploading these files they are interpetted as **application/zip**.

I fixed it by editting the application/config/mimes.php file:

1:
Replace: *'docx'	=>	'application/vnd.openxmlformats-officedocument.wordprocessingml.document',*
With: *'docx'	=>	array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),*

2:
Replace: *'xlsx'	=>	'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',*
With: *'xlsx'	=>	array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),*

Hope you guys can fix this soon... Thanks