File resource settings

File resource

A teacher can add a file in a course when editing is turned on by dragging and dropping it or by clicking an 'Add an activity or resource' link (or, if not present, the "Add an activity" drop down menu) and selecting File.


Dragging and dropping files

To drag and drop a folder, first compress/zip it. See the documentation Folder for more information.

Uploading files

Viewing and editing uploaded files

Creating an alias/shortcut

Note: Aliases cannot be made in the following areas:

This is to prevent cases such as a student uploading an item for assessment and then subsequently changing the original in their private files. When a student uses a file from their private files in one of these instances, they do not see the options to "copy" or "create an alias".

File resource course settings


All of the above is true of items that can be displayed inside the browser directly (e.g. images, text files, PDFs (with plugin)). If the file cannot be displayed within the browser (e.g. word documents, without a suitable plugin, or other files that need to be loaded by an external program), then the pop-ups or frames, etc. will be created, but then the browser will take over and ask if you want to save the file.

To summarise:

Show size or type

To show the file size and/or type on the course page and also on the resource page, simply tick the appropriate checkboxes.

Show upload/modified date

If enabled, this setting will display the date the resource was uploaded. If several resources are uploaded, then date the main file was uploaded will be displayed.

Use filters on file content

(This setting is visible when "Show more" is clicked.)

If you wish included media such as images and mp3 to appear embedded in the files then select "all files" or "HTML files only", according to the file types. (Note that this setting may cause problems for some Flash and Java applets.)

Depending on what is enabled for your site and course, you may also need to explore Common module settings, Restrict access and Activity completion

If your File doesn't display as you wish, check the site settings below:

Extract or unzip a zipped archive file

If you uploaded a zip file into a File or Folder Resource, we can uncompress and expand it into its various files. To do this, go into Edit settings for the resource, right click on the file icon in the Select files area, and then click on the Unzip file button.

Displaying a website index page

The file module may be used if you have a folder with linked files such as a website with an index.html file or a flash activity with xml/swf and index file.

  1. Click the 'Turn editing on' button at the top right of the course page
  2. Drag and drop the zipped folder onto the course section where you'd like it to appear, answer 'Create file resource' to the popup dialogue, then click the upload button
  3. Clicking the editing icon (hand with a pen) then click on the zip file and unzip it
  4. Click on the index.html file or the file you want to start displaying your linked files from then in the popup dialogue click the button 'Set main file'. This ensures this file is the one that appears on the course page for students to click on. The main file is then indicated with a title in bold.
  5. Click the button 'Save and display' at the bottom of the page

Site settings

The file module has additional settings which may be changed by an administrator in Site administration > Plugins > Activity modules > File.

The following capabilities relate to the file resource: