Cant upload SVG files after updating WordPress 4.7.1 [duplicate]

I updated WordPress to 4.7.1 and cant upload SVG anymore.

I had a function in my functions.php file

function cc_mime_types($mimes) {
   $mimes['svg'] = 'image/svg+xml';
   return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');

but it also dont help now.

2 s
2

Per the thread below, a temporary solution would be to add this code to your wp-config file:

define( 'ALLOW_UNFILTERED_UPLOADS', true );

https://wordpress.org/support/topic/wp-4-7-1-kills-svg/page/3/

Leave a Comment