Adding a file
There are two basic approaches to adding a file to your Moodle course.
- Upload it directly yourself. This is by far the most common. If the file is less than 256 MB in size, this is almost surely the approach you want.
- Get me to help. If your file is bigger than 256 MB in size, or if you find yourself having real trouble uploading it, then you'll need my help.
Uploading a file yourself
Approach 1: drag and drop
- Start on the main page of your course. If you haven't turned editing on, do so.
- Drag and drop the file from your computer to the place where you want it in the course.
- If you don't like the title Moodle assigns it, you can use the “Edit” menu to the right of the file to change it.
- Click on the file to make sure the correct thing happens.
If the wrong thing happens—for example, if the students
will need to download your file but instead Moodle tries to
open it in the browser—then you'll need to force the
- Use the “Edit” menu to edit the file's settings. Under “Appearance” is a setting marked “Display”. The default setting for this is “Automatic”; however, you may find that you get better results with “Force download” (for files that should be downloaded) or “Open” (for files that really should be opened in the browser). Select the choice you want.
- Click “Save and return to course” at the bottom of the page.
- Click on the file again, to see if the change you made to “Display” gives you the behavior you expected. Re-edit the setting if necessary.
Approach 2: the long way (or, if you can't drag and drop)
Sometimes, either because you're on the wrong kind of device or for some other reason, you don't have the ability to drag and drop. But your file is small, and you don't want to wait for me. What to do?
- As before, start on the main page of your course. If you haven't turned editing on, do so.
- Go to the week (or unit) where you want to put the file. In the “Add an activity or resource” dialog, choose “File” and click “Add”.
- This will take you to a page titled “Adding a file to something”, where something is the name of the unit to which you're adding the file.
- In the “Name” blank, give your file a name. (This name is for the students to see. It's likely different from the actual filename on disk.)
- In the “Description” text box, enter a description of your file. Don't spend too much time on this, as it's not usually visible, but Moodle requires that you put something here.
- Below that, you will see a section titled “Content”, and inside that section a box titled “Select files”. (If you could drag and drop, that would be the easy way to get your file into the box. Unfortunately, the whole reason you're in this part of the directions is that drag and drop doesn't work for you.) In the upper-left corner of that box is an icon of a file with a “+” on it. Click that icon.
- This will pop up a dialog titled “File picker”. In the dialog is a place marked “Attachment”; next to “Attachment” is a button marked “Choose File”. Click that button.
- You will get a standard file-picker dialog. Use it to select the file you want, and click “Open”.
- This will return you to Moodle's dialog titled “File picker”. Click the button marked “Upload this file”.
- This will return you to the “Adding a file …” page from step 3. If you want to force the way that your file is displayed, you can use the “Display” dropdown in the “Appearance” box to do so.
- If you want to make your file visible only after a certain time (or only within a certain time period), you can change the settings in the “Restrict access” box to do so.
- At the bottom of the page, there are two buttons and a link. Nearly always, you want to click “Save and return to course”, which saves your uploaded file and returns you to the course main page. “Save and display” will save your uploaded file and then try to display it; unfortunately, it doesn't always look the same from “Save and display” as it does when you click to it from the course, so “Save and display” isn't as useful as it should be. “Cancel” just takes you back to the course main page, without saving anything; Moodle will pretend that you never tried to add that file.