Welcome Guest, Not a member yet? Register   Sign In
Bug in /app/config/mimes.php
#1

[eluser]beachbum[/eluser]
I just spent a long time trying to understand why my application would not upload MS Excel files (with a .xls extension). I was not aware of the mimes.php file in the config directory (somewhat new to CI).

Anyway, it seems that there is a typo on the line with the key/value pair for .xls files (.xlsx seems to be associated with the correct mime-type, but I don't own a copy of Office 2007, so I couldn't verify this).

This is the line from the mimes.php file:

Code:
'xl'    =>    'application/excel',

It looks like the 's' was left off.
#2

[eluser]beachbum[/eluser]
I'm sorry - I didn't notice that there is a place for bug reports. I was in a hurry -it is Friday, and I want to go home. Wink
#3

[eluser]helmutbjorg[/eluser]
Line 32
Code:
'xls'    =>    array('application/excel', 'application/vnd.ms-excel'),
#4

[eluser]beachbum[/eluser]
D'oh! Missed that line. Thanks




Theme © iAndrew 2016 - Forum software by © MyBB