[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Sun Feb 12 06:00:47 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 goldsounds):
This regression broke uploads for my plugin https://wordpress.org/plugins
/gltf-media-type/
This plugin identifies .gltf files as type 'model/gltf+json', but the
`finfo_file` function identifies them as 'text/plain' (because under the
hood they're JSON).
This results in wp_check_filetype_and_ext returning false for ext and
type, and the security error.
This is basically a 100% functionality breakage as far as my plugin is
concerned!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:95>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list