Support » Networking WordPress » Listing of all uploaded files in network sites

  • Can I list all files uploaded by users in Network sites? In WPMU each user can manage their files with their own blog but the Super admin can’t monitor all the uploaded files…how can i do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s Multisite, not WPMU 🙂

    And no. You can’t list all files uploaded per user.

    I can monitor files as they are uploaded with the following snippet in mu-plugins:

    add_action( 'add_attachment', 'ds_upload_email', 10, 2 );
    function ds_upload_email($post_ID) {
    	$to =  stripslashes( get_site_option('admin_email') );
    	$subject = 'A file was uploaded';
    	$message = get_permalink($post_ID).' was uploaded</a>';
     		wp_mail( $to, $subject, $message );

    That emails you on every upload? Yow… Not something you want to do on a huge and active site, I’d think 😉

    Of course it is not scaleable, but on a small “family” site or classroom teacher etc, it would work just fine to monitor uploads as they happen.

    Even so, wp_mail pumps out gazillions of emails for every comment/ping, the extra load for emails on every upload shouldn’t be too taxing.

    And that would be why I turned off emails except on pending comments 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Listing of all uploaded files in network sites’ is closed to new replies.