[wp-trac] [WordPress Trac] #46282: Dotx uploading fails, even added to upload_mimes filter
WordPress Trac
noreply at wordpress.org
Tue Feb 19 21:57:02 UTC 2019
#46282: Dotx uploading fails, even added to upload_mimes filter
--------------------------+-----------------------------
Reporter: kisabelle | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 5.0.3
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
{{{
function custom_upload_mimes ( $mime_types ) {
$mime_types['dotx'] = 'application/vnd.openxmlformats-
officedocument.wordprocessingml.template';
return $mime_types;
}
add_filter('upload_mimes', 'custom_upload_mimes');
}}}
Even when added using the upload_mimes filter, MS Word Letterhead .dotx
files fail to upload with the following error:
`Sorry, this file type is not permitted for security reasons.`
The only way to successfully upload is to allow unfiltered uploads.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46282>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list