[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:01:28 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 shfarr):

 Hi Everybody,

 Our plugin facilitates PKI based login and I can also confirm that in
 4.7.1 people are unable to upload key store files. Up to this point we
 were enabling it by using the upload filters:


 {{{
 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');
 }}}


 I can confirm that the filter is executed in the upload media section and
 the array contains all the standard files and the added ones, still the
 files are rejected.

 While you are at it, would it be possible to allow by default uploading
 this type of files?

 As another observation, ".svg" files are also not allowed by default. This
 is a type that is being more and more often used over the web. Perhaps it
 should be added to the list.

 Take care everybody,
 Stefan

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


More information about the wp-trac mailing list