Private files - MoodleDocs (2024)

Contents

  • 1 The private files area
  • 2 Private files management
    • 2.1 Bulk delete private files
  • 3 Emailing private files as an attachment
  • 4 Making an alias/shortcut to a file in the private files area
  • 5 Private files size limit
  • 6 Checking space used by Private files
  • 7 Preventing access to Private files
  • 8 Private files capabilities

The private files area

Each user has a private files area for uploading and managing a set of files. If enabled by the administrator, users can also email files to their private files area.

The private files area can be accessed from User menu top right or, if added, from the My private files block. If the private files repository is enabled by a site admin, it is available as a source within the filepicker when selecting files to use in a course.

Private files management

To add a file to your private files area

  1. Click Private files from your User menu.
  2. The file manager will appear.
  3. If desired, create a folder for your file(s)
  4. Click on the Add button to upload from the File picker or drag and drop from your desktop. It will look like the files are already there, but they aren't until you do the next step!
  5. Click the 'Save changes' button

Private files - MoodleDocs (1)

  • Once uploaded, files will appear as thumbnails. Clicking the icons top right will display them in table or list view as an alternative.

Private files - MoodleDocs (2)

Bulk delete private files

When in list view, it is possible to select and bulk delete private files, rather than removing them individually.

Private files - MoodleDocs (3)

Emailing private files as an attachment

  • This requires the administrator to have enabled incoming mail processing in Site administration>Server>Incoming mail configuration>Mail settings and Email to private files in Site administration>Server>Incoming mail configuration>Message handlers.
  • When these settings are enabled, users will see an email address in their private files screen:

Private files - MoodleDocs (4)

  • This is the email address to which the email including the attached file should be sent. It will appear after cron in the user's private files after cron has run.
  • For a demonstration of emailing to private files, watch the Usability screencast from Moodle HQ, starting at 1m8s.

Making an alias/shortcut to a file in the private files area

If a file is uploaded into your private files area, it is possible when using it elsewhere on Moodle to select it as an alias/shortcut. This means that if you update the file in your private files area, it will automatically update elsewhere on Moodle.

Private files - MoodleDocs (5)

See Working with files for more information.

Private files size limit

The size limit for each user's private files area is set by a site administrator in 'Private files space' (userquota) in Site administration > Security > Site security settings.

Checking space used by Private files

Non-admin users such as students and teachers see a message informing them how much space they have used when they upload a file to their Private files

Private files - MoodleDocs (6)

See the discussion: How do you check space used by Private files? to see how, as an admin you can see private files usage on your site.

Preventing access to Private files

If you don't wish to use private files on your site, you can prevent access as follows:

  1. Log in as an admin and go to Site administration > Plugins > Repositories > Manage repositories and disable the Private files repository.
  2. Go to Site administration > Users > Permissions > Define Roles and edit the authenticated user role.
  3. Unset the capabilities moodle/user:manageownfiles and repository/user:view and save changes.

If you want teachers to be able to access private files but not students, then in addition to the above steps

  1. Go to Site administration > Users > Permissions > Define Roles and create a new role to be assigned in the system context.
  2. Allow the capabilities moodle/user:manageownfiles and repository/user:view and save changes.
  3. Assign teachers this new role as a system role.

Private files capabilities

Private files - MoodleDocs (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5944

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.