Course Files

Blocks ::: block_coursefiles
Maintained by Picture of Andrew DavidsonAndrew Davidson
This block provides information on the file usage on a given course.

Course Files 1.2

Moodle 2.9, 3.0, 3.1
Released: Friday, January 22, 2016, 7:45 PM
Moodle block which provides information on the files currently attached to a course.

This plugin requires Moodle 2.9

2016-01-22 - Added caching for reports
2015-02-06 - Added new global report page for viewing all course file usage in one place
2015-02-05 - Initial version

Install the plugin like any other plugin to folder

See for details on installing Moodle plugins

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.

block_coursefiles should work with all themes from moodle core.

block_coursefiles has neither a settings page nor settings in config.php.

Further information
block_coursefiles is found in the Moodle Plugins repository:

Report a bug or suggest an improvement:

Right-to-left support
This plugin has not been tested with Moodle's support for right-to-left (RTL) languages.
If you want to use this plugin with a RTL language and it doesn't work as-is, you are free to send me a pull request on
github with modifications.

Thanks to Peter Hinds, Jonathan McAlister & Yair Spielmann for ideas and suggestions

Andrew Davidson

Version information

Version build number
Version release name
Can be updated from
1.0 (2015020600), 1.1 (2015020601)
Can be updated to
1.3 (2017022800)
Stable version
MD5 Sum
Supported software
Moodle 2.9, Moodle 3.0, Moodle 3.1
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1

Version control information

Version control system (VCS)
VCS repository URL
VCS branch

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.