[eluser]Unknown[/eluser]
Hi, it seems there is a bug on upload library on codeigniter 2.1.0.
Upload process always end with "The filetype you are attempting to upload is not allowed." even when we have set allowed file type on upload config.
it seems the problem is incorrect set variable proccess for $this->file_type in line 200
in CI 2.1.0 its showed like this
Code:
$this->file_type = preg_replace("/^(.+?);.*$/", "\\1", this->file_type);
when it should be like this
Code:
$this->file_type = preg_replace("/^(.+?);.*$/", "\\1", $_FILES[$field]['type']);
Hopefully you can include this fix for the next release
Best Regards