WordPress: Sorry, this file type is not permitted for security reasons.

You can overcome the security warning by adding this to your current themes functions.php file.

add_filter('upload_mimes', 'custom_upload_mimes');

function custom_upload_mimes ( $existing_mimes=array() ) {

	// add the file extension to the array

	$existing_mimes['svg'] = 'mime/type';

        // call the modified list of extensions

	return $existing_mimes;

}

Reference

Add a Comment

Your email address will not be published.

fourteen + seventeen =