[wp-trac] [WordPress Trac] #27495: Multisite SVG uploads are served with incorrect mime/type
    WordPress Trac 
    noreply at wordpress.org
       
    Thu Apr 10 11:32:28 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 close  |     Focuses:  multisite
-------------------------------------+------------------------------
Changes (by SergeyBiryukov):
 * keywords:  reporter-feedback => reporter-feedback close
Comment:
 Replying to [comment:2 jhawksley]:
 > That is not the case. Even when setting mime type as image/svg, ms-
 files.php still sets the header as text/xml.
 I could not reproduce this with the code from comment:1:ticket:20990.
 `ms-files.php` uses `wp_check_filetype()` and falls back to
 `mime_content_type()`:
 [source:tags/3.8.2/src/wp-includes/ms-files.php#L32].
 If the correct `image/svg+xml` type is added via `upload_mimes` filter,
 then `wp_check_filetype()` returns that.
 Otherwise, `mime_content_type()` is used, which depends on server
 configuration (see comment:10:ticket:25224).
 This appears to be a duplicate of #24251 and #26256. See also #25224 and
 #26591.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27495#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list