Open the wp-config.php file of your WordPress installation and above the line where it says /* That's all, stop editing! Happy blogging. */ add the following code anywhere. Remember to delete it after finish upload the files because can be a potential risk in security.
define('ALLOW_UNFILTERED_UPLOADS', true);
/* That's all, stop editing! Happy blogging. */
// add to your theme's functions.php file
function add_custom_upload_mimes($existing_mimes) {
$existing_mimes['ttf'] = 'application/x-font-ttf';
$existing_mimes['eot'] = 'application/vnd.ms-fontobject';
return $existing_mimes;
}
add_filter('upload_mimes', 'add_custom_upload_mimes',1 ,1);