Assets upload (feature/1.4_dev)
Asset uploads fail with "The filetype you are attempting to upload is not allowed."
I've traced the issue to /codeigniter/librares/upload.php line 900
if (isset($this->_mimes[$ext]))
{
return is_array($this->_mimes[$ext])
? in_array($this->file_type, $this->_mimes[$ext], TRUE)
: ($this->_mimes[$ext] === $this->file_type);
}
this always fails and the function returns false
There are no mimes defined in the class, I'm not sure if they need defining in the class or whether codeigniter should pick them up form fuelCMS.
Comments
I'm trying to upload a small .jpg.
It's getting the right file type in the upload class, the detail of the upload file are correct:
array (
0 => 750,
1 => 500,
2 => 2,
3 => 'width="750" height="500"',
'bits' => 8,
'channels' => 3,
'mime' => 'image/jpeg',
)
the mime.php in application/config look good.
Cheers
https://github.com/daylightstudio/FUEL-CMS/commit/2bdee1120d2f9fa4ac00df002839ca8a34d41b0c