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:
- Navigate to the Settings/Media Library Assistant Uploads tab.
- Enter
.svg in the text box by “Search uploads”, then click the button.
- Hover over the SVG icon and click the “Quick Edit” rollover action.
- Clear/uncheck the box to the left of “Inactive”.
- Click the Update button to record your change.
- 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.
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');
@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.
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.
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