Unable to upload SVG files even with ALLOW_UNFILTERED_UPLOADS set
-
Subject says it all. ?? I have several sites where wp-config.php includes the line
define('ALLOW_UNFILTERED_UPLOADS', true);
. I would expect that to permit substantially all file types to be uploaded. However, SVG files are not allowed, displaying the message “Sorry, this file type is not permitted for security reasons.”I haven’t yet been able to verify this on a site with no plugins and a stock theme, but I’ve reproduce the problem on several sites with a wide variety of plugins and themes, enough that I’m fairly confident there’s no single piece of code in common between them except for WordPress core.
I know there are plugins that claim to enable SVG uploads, but I would expect the ALLOW_UNFILTERED_UPLOADS define to make such things unnecessary. Unless I’m misunderstanding the intended purpose of that define, but the name seems fairly unambiguous. ??
Anything obvious I’m overlooking before I put in a Trac ticket?
- The topic ‘Unable to upload SVG files even with ALLOW_UNFILTERED_UPLOADS set’ is closed to new replies.