• Resolved Neil

    (@encrypt1on)


    Hi All,

    I have recently updated to the latest version of MLA. However I cannot upload SVG’s to my site. Does anyone have the same issue?

    To fix the problem, I have to disable the plugin and use this temporary code found from CSS-Tricks:

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

    The error message, as follows:

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

    By default the svg was already present I have disabled, removed and re-entered it into the upload tab, to no avail. It was working previously.

    Many thanks.

    https://ww.wp.xz.cn/plugins/media-library-assistant/

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

    (@dglingren)

    Thank you for your report; I regret the trouble you are having with the new version.

    You have discovered a separate symptom of the MLA defect reported in this recent support topic:

    Undefined offset: 1 …

    The latest MLA Development Version corrects the problem. To get the Development Version, follow the instructions in this earlier topic:

    Shortcode not working in (special) widget

    You can also get immediate relief by changing the way you upload your SVG images. The defect affects the Media Manager Modal (popup) Window from the “Add Media” button on the Edit Post/Page screens, and in the Media/Library “grid” view. If you use the Media/Add New (Upload New Media) screen you can avoid the defect and upload your files without installing the Development Version.

    I hope the above suggestions work for you. I will leave this topic unresolved until the fix goes out in the next official MLA version. Thanks for your report and for your interest in the plugin.

    Hi, I was having trouble with latest version uploading a custom filetype I’d added (.gem file). It was also saying “not allowed for security reasons”. The development version fixes this issue.

    Thanks for this awesome plugin!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news regarding the Development Version. If you have any more trouble, let me know.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 2.22, which contains a fix for the problems you reported. I am marking this topic resolved, but please update it if you have any other problems with the new version. Thanks to both of you for your help with this topic.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘SVG Upload’ is closed to new replies.