[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Thu Feb 23 15:53:44 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.3
Component: Upload | Version: 4.7.1
Severity: critical | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------
Comment (by kontur):
Even when passing in my augmented mimes again as $overwrites (which I
shouldn't have to) in
https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-
includes/functions.php#L2326 finfo returns the type for my uploaded woff
as ""application/octet-stream", which contradicts the mime received from
the file extension which wp_check_filetype() correctly extracted, alas
$ext and $type get set to false, which triggers the error message then.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:106>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list