[eluser]mm[/eluser]
i'm looking at Upload.php in Libraries and noticed that this piece of code actually caused the problem (in my case).
Code:
if (in_array($val, $image_types))
{
echo $this->file_temp;
if (getimagesize($this->file_temp) === FALSE)
{
return FALSE;
}
}
in my list of allowed file types below
Code:
doc|avi|mp3|jpg|docx|xls|xlsx|pdf|txt
i noticed that after 'jpg', the process stopped and throws the "The filetype you are attempting to upload is not allowed" error. this code is actually in a foreach loop and if I'm uploading files with any other extension after the 'jpg', it failed because somehow it exits the loop on 'jpg'.
I'm sorry i don't really know how to explain this.
anyway, if i change return FALSE to return TRUE, everything works fine.
so, is it ok if i just change it to TRUE?