Daryll Doyle WordPress Development and Consultancy in Cornwall

CategoryRant

How to allow SVG uploads in WordPress

H

Don’t. Nope, stop. You developers/bloggers who keep passing the below code around as a valid way of allowing SVG uploads in WordPress are killing me inside. Yes, this will allow you to upload SVGs in WordPress, it will also allow someone to upload an XML Bomb or an SVG with an XXE attack or god forbid a lovely XSS attack. You see, too many developers are allowing SVG uploads without...

Daryll Doyle WordPress Development and Consultancy in Cornwall