uploading fonts in fuel cms assets
I'm trying to upload font files.
first problem I encountered the browser responded. 'You cannot upload .otf file'.
I tried fixing it by adding the mime type for the otf in config mimes.php file then added also in my_fuel.php the following:
in mimes.php :
'otf' => array('application/font-sfnt', 'application/x-font-opentype', 'font/opentype' ),
in my_fuel.php :
$config['editable_asset_filetypes'] = array(
'fonts' => 'otf',
'assets' => 'jpg|jpeg|jpe|png|gif|mov|mpeg|mp3|wav|aiff|pdf|css|zip|otf',
now, it fixes the 'You cannot upload .otf file'.
but I have a new problem when trying to upload the file saying : 'The filetype you are attempting to upload is not allowed.'
what should I do?
need help sir.