Lesson downloads and protected files

Updated

A lesson can offer files in two ways: Downloads picked from the Media Library, and Protected files uploaded straight into the lesson. This page explains the difference and who can open each.

Both are in the lesson’s details in the course builder. Use protected files for anything that must stay private, such as paid workbooks. Use Media Library downloads for files that are also used elsewhere on your site.

Downloads

Downloads are files you pick from the Media Library with Add files. They are listed in the lesson only for students who can open the lesson. The Who can open the downloads setting decides how they are linked:

ChoiceWhat it does
Students of this course when it is not free (default)In courses whose enrollment is anything other than Free, students get links made for them. In free courses and free preview lessons, the files keep their plain Media Library address.
Only students who can open this lessonAlways links made for each student, even in free courses and previews.
Anyone with the file’s addressAlways the plain Media Library address.

A link made for a student expires after six hours and stops working as soon as the student loses access to the lesson, for example when their enrollment ends. Students open the lesson again for a fresh link.

Media Library files stay reachable

Media Library files keep their own Media Library address: anyone who finds that address can still download the file. For files that must stay private, use Protected files.

Protected files

Protected files are uploaded straight into the lesson with Upload a file. They never go to the Media Library and have no public address. Only students who can open the lesson can download them, always through links made for each of them, whatever Who can open the downloads says.

  • Upload one file at a time, up to your site’s maximum upload size.
  • Web page, script, SVG and XML files are refused.
  • Use Delete to remove a file.
  • Deleting the lesson permanently deletes its protected files.
  • A duplicated course gets its own copies.

Students get it as

Each protected file has Students get it as:

ChoiceWhat it does
A downloadThe file is listed under Downloads. This is the default.
The lesson’s audioThe file plays as the lesson’s audio. Sound files only.
The lesson’s PDF documentThe file is shown as the lesson’s PDF. PDFs only.
The transcript fileThe file is offered as the lesson’s transcript download.

A lesson has one of each. Choosing another file for one puts the previous file back among the downloads. A protected file used as the audio, PDF or transcript replaces the Media Library file or audio address set in the lesson’s settings. See Lessons.

Where protected files are stored

Protected files are stored in wp-content/uploads/public-learning-management-system/private/.

On servers that ignore the folder’s .htaccess file (usually nginx) it needs a server rule; the builder then shows a warning above the files. See Troubleshooting for the rule to add.

Was this page helpful?