Can you add SVGZ to MIME types?
-
Elegant solution! Is it possible to add SVGZ to the mimes list, or does the sanitize lib not support that?
public function allow_svg( $mimes ) { $mimes['svg'] = 'image/svg+xml'; $mimes['svgz'] = 'image/svg+xml'; return $mimes; }
Thanks, mate. I’ve grown sick of mucking around with WordPress always trying to kill SVGs (!!), so this is helpful.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can you add SVGZ to MIME types?’ is closed to new replies.