admin unable to upload media (multisite)
-
Hi, Since upgrading my multisite to 4.7.2 (it was pre 4.7.1 before), I have been unable to upload any media to any site when logged in as super admin and for all the sites I have tried using any user (except for one, strangely, which I can log into as an editor-role user and upload media to).
The error I get is ‘Sorry, this file type is not permitted for security reasons.’, which lives in the function _wp_handle_upload in wp-admin/includes/file.php
It works fine if I remove the check from wp-admin/file.php by commenting out the following lines:
if ( ( ! $type || !$ext ) && ! current_user_can( ‘unfiltered_upload’ ) ) {
return call_user_func_array( $upload_error_handler, array( &$file, __( ‘Sorry, this file type is not permitted for security reasons.’ ) ) );
}… seems like the current_user_can function is returning the wrong value…
Installed plugins piklist, contact-form-7 and nextgen-gallery all seem to redefine the current_user_can function so I commented out this function in all three to no avail, which suggests that the problem is with the core code.
Now I’m stuck! Can anyone help me get further?
- The topic ‘admin unable to upload media (multisite)’ is closed to new replies.