Add in function.php

add_filter('upload_mimes', 'nv_add_custom_upload_mimes');
function nv_add_custom_upload_mimes($existing_mimes){

return array_merge($existing_mimes, array(

'csv' => 'application/octet-stream',

'xml' => 'application/atom+xml',

'7z' => 'application/x-7z-compressed',

'rar' => 'package/rar',

'tar' => 'package/x-tar',

'tgz' => 'application/x-tar-gz',

'apk' => 'application/vnd.android.package-archive',

'zip' => 'package/zip',

'img|iso' => 'package/img',

'gz|gzip' => 'package/x-gzip',

'deb|rpm' => 'package/x-app',

'ttf|woff' => 'application/x-font') );

return $existing_mimes;
}

or add in config.php

define('ALLOW_UNFILTERED_UPLOADS', true);

Advertisements