Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report. If you are getting “Sorry, this file type is not permitted for security reasons.”, I think I can help.

    It looks like the .svg file type has been made inactive by default. To activate it:

    1. Navigate to the Settings/Media Library Assistant Uploads tab.
    2. Enter .svg in the text box by “Search uploads”, then click the button.
    3. Hover over the SVG icon and click the “Quick Edit” rollover action.
    4. Clear/uncheck the box to the left of “Inactive”.
    5. Click the Update button to record your change.
    6. Try the upload again.

    That should restore SVG uploads. I am marking this topic resolved, but please update it if you have any problems or further questions about the above steps. If further investigation is required I will get to it as soon as I return home on 2/17. Thanks for your patience, understanding and your interest in the plugin.

    Thread Starter sandvall

    (@sandvall)

    Hi Daivd,

    I followed your guide and it works now – thank you so much!

    Atb
    Morten

    The suggestions in this thread do not work, and I am not sure what the Media Libary Assistant does at all, to tell you the truth. What does work is to add this code to
    wp-includes/functions.php

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

    (@dglingren)

    @hnaparst,

    Thanks for your report. I have just re-tested the instructions from my first post on a fresh WordPress install and they were successful on my system. If you can be more specific about the problem(s) you encountered I would be happy to give you some suggestions.

    It looks like you found another solution for your immediate needs, but if there is anything I can do to help you understand MLA or put it to use, start a new support topic and I will be happy to help. Thanks for your interest in the plugin.

    I’ve tried both of your solutions and neither seem to work.

    – Installed the media assistant, enabled .svg via the upload tab.
    – Added the function code.

    We’re able to submit the upload, but this message still appears:
    Sorry, this file type is not permitted for security reasons.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report; I regret the trouble you are having with SVG uploads.

    It looks like this is a WordPress issue, not specific to MLA. Here’s a recent topic with more information:

    WP 4.7.1 Kills SVG

    I will investigate further and see if there is anything I can do within MLA to mitigate the problem. I will post an update here when I have progress to report.

    Plugin Author David Lingren

    (@dglingren)

    I have uploaded a workaround for this WordPress issue. Please see this more recent topic and make any further posts there:

    Unable to Upload SVG

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot upload SVG files’ is closed to new replies.