Site icon Hip-Hop Website Design and Development

Disable drag and upload in Media Library

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I’m building a multisite and user of sub-site cannot upload media files but they can view.

I can remove their capability ‘upload_file’ but that would completely remove the media experience.

So far this is what I’ve got:

add_action('admin_init','disable_drag_upload');
function disable_drag_upload() {

    wp_deregister_script( 'wp-plupload' );
}

.. but that would skip the media library content.