Course Files

Blocks ::: block_coursefiles
Maintained by Andrew Davidson
This block provides information on the file usage on a given course.
Latest release:
187 sites
12 fans
Current versions available: 3

This block provides information on the file usage on a given course.

The block_coursefiles plugin has three views:

The main block view will show an overview of the file storage used as well as the largest 5 files on a course

The block has a report page that will show a list of all the files on a course, ordered by size.

The block also has a global report page that will show a list of all courses and their total storage usage.
The global report is available in the Reports section of the Site Administration block.


Screenshot #0
Screenshot #1


Andrew Davidson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Feb 6, 2015, 6:15 PM
    H Andrew. Thanks for sharing your plugin with the community. Please find the two issues I reported to your tracker. I'll be happy to approve this plugin once a new version with fixes is added here.
  • Fri, Feb 6, 2015, 6:36 PM
    Thanks for fixing the issues promptly. You are cleared to land now, welcome to the Plugins directory.
  • Mon, Feb 9, 2015, 7:34 PM
    Woudl it be possible to add links to the "edit-window" of each file
  • Daniel
    Fri, Jan 22, 2016, 4:52 PM
    Do you wear your plugin for Moodle 2.9 Moodle or even?
    Thank you.
  • Fri, Jan 22, 2016, 7:46 PM
    Hi Daniel,
    I've added a new version of the plugin supporting 2.9 & 3.0
  • Thu, Mar 10, 2016, 8:11 PM
    Hello Andrew,

    Your version appears to only support version 2.9.4 and up. Are you certain this will not install on 2.9.3? Your description says 2.9, but your version.php file specifies 2015051104 (2.9.4).
  • Wed, Aug 3, 2016, 5:01 AM
    Thanks for sharing this plugin. Do you know if a version will be released for moodle 3.1 ?
  • Wed, Mar 1, 2017, 8:23 PM
    When you click in "view more" on the block, what suppose appear? Only Top 5? That's what i got.
  • Fri, May 5, 2017, 3:38 PM
    There seems to be a problem installing the new version. On 2 separate sites, it properly validates the plugin but never gets to the update the database screen, but rather takes you back to the list of plugins that need to be updated. I show the plugin and the circle repeats. Thanks marc
  • Daniel
    Sat, Jan 27, 2018, 6:02 PM
    Thank you for your very useful plugin.
    It also works on Moodle 3.4.
    Would it be possible for your plugin to make the difference between the files actually deposited in the course and the files linked by alias (link).
    Indeed to really know the size of the course, the one that determines the backups, it would be useful to give rather the actual size of the course.
    Thank you for your reply.
  • Tue, Feb 2, 2021, 4:57 AM
    Hi Andrew, I just wanted to say, that I have installed the plugin on Moodle 3.10.1 and as far as I can tell, it works perfectly. It is a little slow, but based on the number files uploaded on this particular moodle, I don't think it is much of an issue. I did have to change the date format in the view.php and I was wondering how I would change the time created heading to say Date Uploaded, instead of Time created. I looked through the code and thought I found the correct setting but it didn't change it. Is it possible to change the column heading on the view report?
  • Wed, Feb 3, 2021, 9:37 PM
    Hi Andrew, I figured out my above question, I just didn't realize that I had to purge cache after making the coding change.
  • Sun, Aug 1, 2021, 4:26 AM
    Are there plans to Update the Plugin to moodle 3.9.?
  • Wazza
    Wed, Oct 13, 2021, 6:06 PM
    Looks like a nice block, but latest update is over 4 years ago. So I'm a bit wary to install this.
Please login to post comments