File resource FAQ

From MoodleDocs

I can't upload files to my course.I get the message that my 'filetype cannot be accepted'

  • Make sure you are not trying to upload to the course summary files area - Administration>Course administration>Edit settings.
  • This upload area is only for files describing the course and by default only image files are allowed (so that a screenshot may be displayed next to the summary.)
  • If you wish to upload files into your course, make sure you are first on the main course page itself, not in the settings of the course.


My students cannot open the file I uploaded for them

Check that the students have the appropriate software to open your file. While Moodle will accept different types of files, it relies on the user to read them with the relevant program. If you uploaded a MS Word 2010 document for instance, make sure your class is able to access Office 2010, or provide them with alternatives such as links to Open Office, a "reader" or a pdf version of your file. If your teaching involves the use of subject-specific proprietary software, you should ensure your students are given the means to open the files at home as well as in your establishment.

See the existing additional plugins for opening PowerPoint and other MS Office files within Moodle.

See the Presentation additional plugin that displays multimedia HTML5 presentations and slide shows in users' web browsers.

Office docs and PDFs won't open on Android devices

Try changing the display to "Automatic" instead of "Force download". See this forum post about documents and Android mobiles.

Why is it possible to select multiple files in the file settings?

Because you might be uploading a set of HTML pages with resources. You make the index.HTML page the main one, and can reference the other resources.

How can I upload a lot of files in one go?

You can use the Folder resource to display multiple files. Put all your files into a folder, zip(compress) the folder and upload it to the Folder resource. Click the icon to the right of its name to unzip it and then save. All the files will then display.

How can I change the top frame size when displaying a file in a frame?

  1. Login as an admin and go to Settings > Site administration > Plugins > Activity modules > File.
  2. Change the 'Frame height' setting.
  3. Click the 'Save changes' button.

If I upload a file in one course, can I use it in another course as well?

Yes. From the file picker, choose Server files and then navigate to the course where you uploaded the file initially and select it there.

How can I make ppt files open within Moodle rather than downloading?

You need to convert the ppt to something else, such as PDF.

How can I show the size of a file on the course page?

Students who need to download files appreciate being able to see its size especially if they have a slow Internet connection. Simply tick the 'Show size' checkbox in the file settings.

If students can link to uploaded files as aliases, how can I stop them changing their assignments?

Don't worry! Students are not allowed to link to files in their private files when uploading assignments, forum attachments, workshop submissions or quiz essays. See Working with files.


I've uploaded a video file, but it's too small. How do I change the default video size?

The default size for Moodle video and flash replay is 400×300 pixels. If you want the default video size to be larger, add the following code to your config.php file. Another method is to add the same code to the bottom of theme/themename/config.php file (where themename is the name of the theme or themes you are using). Note set the number to the size in pixels you want, common sizes being 800×600 or 700×525 or 600×450 or 500×375.

... if (!defined('CORE_MEDIA_VIDEO_WIDTH')) {
    // Default video width if no width is specified; some players may do something
    // more intelligent such as use real video width.
    // May be defined in config.php if required.
    define('CORE_MEDIA_VIDEO_WIDTH', 800);
}
if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) {
    // Default video height. May be defined in config.php if required.
    define('CORE_MEDIA_VIDEO_HEIGHT', 600);
}
if (!defined('CORE_MEDIA_AUDIO_WIDTH')) {
    // Default audio width if no width is specified.
    // May be defined in config.php if required.
    define('CORE_MEDIA_AUDIO_WIDTH', 400);
}...