[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Wed Jan 18 18:21:29 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: 4.7.1
Severity: critical | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------
Comment (by blobfolio):
Hi @btolman,
I haven't tested the third iteration of the patch on Multi-Site or Windows
yet. I would be grateful if you'd give it a shot and report back. That
would be a big help!
There shouldn't be any conflicts with Multi-Site. The only WordPress
functions referenced by the new class (which is limited in scope to trying
to find a file extension/MIME pairing) are `sanitize_mime_type()`,
`wp_check_invalid_utf8()`, and `wp_get_mime_types()`.
I did anticipate a few Windows-specific quirks with `finfo_file()` that I
hope will result in a much more conservative effect on upload validation
(erring on the side of "trust the filename"). The MIME/ext database this
draws from has about 14x the amount of data the built-in WP version
contains, so it should be much better at mapping OS/PHP-specific
variations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:69>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list