- 05 Jul 2023
- 2 minutes to read
Set up a File Transfer Protocol (file system repository)
- Updated on 05 Jul 2023
- 2 minutes to read
The file system repository allows you to add files to a folder on the server via File Transfer Protocol (FTP). This can be useful if you have larger files you need to use within a particular course, or for a particular user. You can then restrict access to that file (within Totara) to a particular course or individual. All of this can only be set up by the Site Administrator, who will also need access to the server.
To fully set this up there are a number of steps:
- Setup on the folder on the server.
- Enable the file system repository on Totara.
- Create the repository instance.
- Configure that instance.
- Add to course and/or associate it to an individual.
Step 1: Server-side setup
The first thing you will need to do is set up a folder (or folders) on your server. To do this you will need access to the server files and to follow these steps:
- Access the sitedata folder.
- Inside this, create a folder called repository.
- You can then create as many new folders as you wish inside this repository folder.
Step 2: Enabling the File system repository
To enable the repository you will need to be a Site Administrator.
- Go to Quick-access menu > Plugins > Repositories > Manage Repositories.
- Alongside File system, change the dropdown to Enabled and Visible.
Step 3: Creating a repository
Once you have enabled the file system you will need to create a repository. This can be done as either a site-wide, course, or user repository.
Creating a site-wide repository instance
After the folder has been added to the server and you have enabled the File system repository, you can now set up the Totara side.
- Go to Quick-access menu > Plugins > Repositories > File system.
- In the Repositories instances of the site table, click the Create a repository instance button.
- Complete the form on this page, remembering to chose the desired folder from the dropdown list.
- Click Save.
Creating a course repository instance
If enabled, then you can create a File system repository that is associated with a particular course.
- Go to Quick-access > Plugins > Repositories > File system.
- Make sure you enable (check the box) Allow admins to add a file system repository instance to a course.
- Click Save.
- Go to the course you wish to add the repository to.
- In the Administration block go to Course administration > Repositories.
- Click Create a repository instance.
- Complete the form, remembering to chose the desired folder from the dropdown list.
- Click Save when you are done.
Creating an individual user repository instance
If you enable this then you can associate a File system repository with a particular user.
- Go to Quick-access menu > Plugins > Repositories > File system.
- Make sure you enable (check the box) Allow admins to add a file system repository instance for personal use.
- Click Save.
- Go to Quick-access menu > Users > Accounts > Browse list of users.
- Find the user you wish to add the repository to.
- After landing on the profile page, go to Preferences > Manage Repositories.
- Click Create a repository instance.
- Complete the form, remembering to chose the desired folder from the dropdown list.
- Click Save when you are done.
Using file system repository files
Once a file has been uploaded, via FTP, to the relevant folder it can be accessed in Totara via the file picker. It will appear as one of the listed options, just like any other repository.
Next steps
- Configure an individual repository
- Repository settings
- Enable repositories
- Configure site-wide repository settings