[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1

WordPress Trac noreply at wordpress.org
Fri Jan 13 08:10:54 UTC 2017


#39550: Some Non-image files fail to upload after 4.7.1
---------------------------+------------------------
 Reporter:  greatislander  |       Owner:  joemcgill
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  4.7.2
Component:  Upload         |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------

Comment (by mensmaximus):

 Replying to [comment:30 shfarr]:
 >
 > {{{
 > function identity_plus_enable_extra_extensions($mime_types =array() ) {
 >               $mime_types['p12']  = 'application/x-pkcs12';
 >               return $mime_types;
 > }
 >
 > add_filter('upload_mimes', 'identity_plus_enable_extra_extensions');
 > }}}
 >


 Can you confirm the .p12 files have 'applicatio/x-pkcs12' as mime type and
 not 'application/keychain_access'?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list