[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 10:00:40 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:32 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.
This turns out to get tricky. IANA (http://www.iana.org/assignments/media-
types/media-types.xhtml) says 'application/pkcs-12' while Apache says
'application/x-pkcs12'.
If this is true for a couple of mime types it will be fun to get implement
the list of supported mime types in WordPress. Imho the list returned from
wp_get_mime_types needs to be reviewed anyway because allowing flashfiles
to be uploaded but not SVG files seems wired to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list