Setting up repositories

moodleSometimes you might need to upload a large file (e.g. I had a course backup file that was 200MB) and you might find that php limits won't allow it, no matter what you do! This article describes using a repository to overcome this issue.

Server directory

We will start by creating a directory on the server.

  1. Using cPanel or FTP, access your moodledata directory.
  2. Create a folder called repository.
  3. Create any subfolders as needed (e.g. 'courseBackups').

Using FTP or cPanely you can upload any size and type of file that you need.


File System Repository Plugin

Now you need to enable the File System repository plugin.

  1. Log on to your Moodle site with an admin account.
  2. Go to Site administration > Plugins > Repositories > Manage repositories.
  3. For the File System plugin select Enabled and visible from the dropdown.
  4. Select one or both of the settings to Allow admins to add a file system repository to either courses or for personal use.
  5. Click Save.
  6. With the plugin saved, click on its Settings link.
  7. Click Create a repository instance.
  8. Enter a Name for your repository (e.g. Course backups).
  9. Choose one of the folders that you created from the dropdown selection (e.g. courseBackups).
  10. Click Save.

Now when you need to reference any of these larger files, you can by accessing them using the File Picker dialog box throughout Moodle.


Thanks for visiting.