Setting up repositories
Sometimes 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.
We will start by creating a directory on the server.
- Using cPanel or FTP, access your moodledata directory.
- Create a folder called repository.
- 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.
- Log on to your Moodle site with an admin account.
- Go to Site administration > Plugins > Repositories > Manage repositories.
- For the File System plugin select Enabled and visible from the dropdown.
- Select one or both of the settings to Allow admins to add a file system repository to either courses or for personal use.
- Click Save.
- With the plugin saved, click on its Settings link.
- Click Create a repository instance.
- Enter a Name for your repository (e.g. Course backups).
- Choose one of the folders that you created from the dropdown selection (e.g. courseBackups).
- 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.