[wp-trac] [WordPress Trac] #14659: Incorrect mime type served for some uploaded file

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 20 16:58:37 UTC 2010


#14659: Incorrect mime type served for some uploaded file
--------------------------+-------------------------------------------------
 Reporter:  recoilfx      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0.1          
 Severity:  normal        |    Keywords:  mime upload    
--------------------------+-------------------------------------------------
 I used "upload_mimes" filter so that I can add additional allowed upload
 files types, however, there is a problem when serving these files.

 It seems that ms-files.php does a short init, which skips the plugin files
 that registers the additional mime definitions.

 So if I am trying to serve a Mathematica .nb file(which has the mime type
 application/mathematica, but it really is a text file), the file will be
 either served as a mime type of text (if mime_content_type exists) or
 image instead of the proper 'application/mathematica'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14659>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list