[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Thu Jan 12 16:09:37 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 stevengliebe):
I have been allowing the upload of proprietary .wie files in my Widget
Importer & Exporter plugin.
{{{#!php
<?php
function wie_add_mime_types( $mime_types ) {
$mime_types['wie'] = 'application/json';
return $mime_types;
}
add_filter( 'upload_mimes', 'wie_add_mime_types' );
}}}
This no longer works as of 4.7.1 without ALLOW_UNFILTERED_UPLOADS set
true. In Media it will return "Sorry, this file type is not permitted for
security reasons". Downgrading to 4.7 causes it to work again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list