.

Allow wordpress to upload any mime type

modify your wp-config.php file and add the following line:

define('ALLOW_UNFILTERED_UPLOADS', true);

You can also edit you wp-includes/functions.php file as follow:

define('ALLOW_UNFILTERED_UPLOADS', true);
function get_allowed_mime_types() {
        static $mimes = false;

        if ( !$mimes ) {
                // Accepted MIME types are set here as PCRE unless provided.
                $mimes = apply_filters( 'upload_mimes', array(
                'jpg|jpeg|jpe' => 'image/jpeg',
                'gif' => 'image/gif',
                'png' => 'image/png',
                'bmp' => 'image/bmp',
                'tif|tiff' => 'image/tiff',
                'ico' => 'image/x-icon',
                'asf|asx|wax|wmv|wmx' => 'video/asf',
                'avi' => 'video/avi',

What's your thoughts on this?

*

Protected by WP Anti Spam