Skip to main content
bj {bjørn:johansen}
  • About me
  • Privacy Policy
  • About me
  • Privacy Policy

Tag

svg

2 posts Feed
  1. 26 May 2016

    SVG uploads in WordPress (the Inconvenient Truth)

    Enabling uploads of SVG files in WordPress is quite easy, and there is a tonne of posts on the Interwebs explaining how you do it. Usually along the lines of: ``` function add_svg_to_upload_mimes( $upload_mimes ) { $upload_mimes['svg'] = 'image/svg+xml'; $upload_mimes['svgz'] = 'image/svg+xml'; return $upload_mimes; } add_filter( 'upload_mimes', 'add_svg_to_upload_mimes', 10, 1 ); ``` And that’s pretty much it. Except it is not.

    Read
  2. 25 May 2016

    Allow SVG uploads to WordPress when behind Sucuri CloudProxy

    Uploading SVG files to WordPress when you’re behind the Sucuri CloudProxy Web Application Firewall isn’t that straightforward, but it is possible.

    Read

© 2026 Bjørn Johansen.

Feed Built with Hugo