[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:22:20 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):
It is listed as "application/x-pkcs12" in this list
(https://www.sitepoint.com/web-foundations/mime-types-complete-list/), or
"application/pkcs-12" alternatively. We've so far used "x-pkcs12" and it
worked as such.
I can send you a valid .p12 file for testing if that would help.
Thanks,
Stefan
~~~
Replying to [comment:31 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:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list