[wp-trac] [WordPress Trac] #45818: ALLOW_UNFILTERED_UPLOADS does not work on multisite
WordPress Trac
noreply at wordpress.org
Thu Jan 3 16:25:01 UTC 2019
#45818: ALLOW_UNFILTERED_UPLOADS does not work on multisite
--------------------------+-----------------------------
Reporter: Hube2 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.0.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In a multisite environment ALLOW_UNFILTERED_UPLOADS does not work. It only
works for super admin. /wp-includes/capabilities.php line ~385.
{{{#!php
<?php
case 'unfiltered_upload':
if ( defined('ALLOW_UNFILTERED_UPLOADS') &&
ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( $user_id
) ) )
$caps[] = $cap;
else
$caps[] = 'do_not_allow';
break;
}}}
I have a site where the client needs to be able to upload files that are
created by various CAD applications, too numerous to name them all, I
don't even know them all. The mime type varies on these file depending on
what application is creating them, there seems to be no standardization
for extension/mime type in CAD applications and each file extension is
only allowed a single mime type. Due to this I must constantly fiddle with
the allowed files and mime types so that they can upload them. This is
ridonkulous as there seems to be no other way on multisite to allow
unfiltered uploads.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45818>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list