Viewing 1 replies (of 1 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @rochellewalr

    As default WordPress doesn’t allow svg file for security reasons.

    In recent changes we changed the validation when checking file types using get_allowed_mime_types() the standard approach from Worpdress.

    Can your try and add snippet below in your theme/functions.php file?

    function svg_mime_types( $mimes ){
      $mimes['svg'] = 'image/svg+xml';
      return $mimes;
    }
    add_filter( 'upload_mimes', 'svg_mime_types' );
Viewing 1 replies (of 1 total)
  • The topic ‘Uploaded file is not allowed for file type – Error’ is closed to new replies.