[wp-trac] [WordPress Trac] #27495: Multisite SVG uploads are served with incorrect mime/type

WordPress Trac noreply at wordpress.org
Wed Apr 9 20:36:03 UTC 2014

#27495: Multisite SVG uploads are served with incorrect mime/type
 Reporter:  jhawksley          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  3.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  multisite
Changes (by johnbillion):

 * keywords:   => reporter-feedback
 * focuses:  accessibility, template, multisite, performance => multisite
 * component:  General => Media
 * version:  3.8.1 => 3.0


 Thanks for the report jhawksley, and sorry nobody has gotten back to you
 until now.

 By default, WordPress does not allow SVG files to be uploaded for security
 reasons. Are you running a plugin which enables SVG files to be uploaded?

 If so, it should be hooking into the `upload_mimes` filter and adding the
 `text/xml` mime type in there. Can you confirm whether this is the case

Ticket URL: <https://core.trac.wordpress.org/ticket/27495#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list