Upload class won't upload .ico |
I'm trying to upload .ico files using the upload class, however, it returns 'The filetype you are attempting to upload is not allowed.' as the error.
I have updated the mimes.php file array with the following: PHP Code: 'ico' => array('image/ico', 'image/x-icon', 'application/ico', 'application/x-ico', 'application/x-win-bitmap', 'image/x-win-bitmap', 'application/octet-stream'), Here is my current code: PHP Code: $config['upload_path'] = 'files/'; Any help is appreciated. Thank you.
I just tried it and it works with your mime settings .. i tested it with CI 3 dev. What Version do you use?
can you show me your total code (even form view code)?
Follow us at https://twitter.com/LIBRETeamStudio to get a lot of new cool stuff
On that array, shouldn't you also add the value: 'image/vnd.microsoft.icon'?
Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |