Support » Plugin: Add Full SVG Support » I can't upload svg nor use them

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jens

    (@jekuer)

    To be honest: no.

    The upload functionality in WordPress is given by

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

    That is included in that plugin and also many others.

    My best guess would be that the upload is either blocked by another plugin or setting, or is blocked by you webhoster.

    Best,
    Jens

    (I will mark this as resolved, since there is no sign this is bug that’s related to this plugin.)

    Hye,

    after reading your answer, I’ve desactivated the plugins one after one…

    The problem was with the plugin “Media Library Assistant”.
    I didn’t know I had to activate the svg mime. After done, I could upload the svg files.

    Now, I can use them in the article.

    But, I can’t see them in the media library (“bibliothèque de médias” – my wordpress is in french); with or without the plugin “Media Library Assistant”.

    thanks for your help.

    Plugin Author Jens

    (@jekuer)

    Do you mean that the file does not show up at all – or is it just that you cannot see a image preview?
    The svg won’t display as a preview (like a normal image would do).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I can't upload svg nor use them’ is closed to new replies.