Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Where certain files could be accessed and used within Moodle

One of the issues that plagued the quiz module was where the images were stored. Understanding how and in what contexts files are stored might be helpful by looking at each activity (module). The following table describes where files are uploaded in every activity module together with the places where the files are stored:

Comparison of where files are uploaded at activity modules
ID Activity module Locations to upload files Simple / detailed uploading file classification more information) Place where the files are stored Other comments
1 Quiz 1. Attached to the question, 2. Import from file upload..., 3. Import from file already in course files..., 4. Update quiz, 5. Attached to the grading 1. Detailed, 2. Simple, 3. Detailed, 4. Detailed, 5. Detailed 1. /server/moodledata/2 (with url http://localhost/file.php/2), 2. nowhere, 3. /server/moodledata/2, 4. /server/moodledata/2, 5. /server/moodledata/2 Nowhere means that the file is not stored, although it is stored the processed information stracted from the file
2 Glossary 1. Attached to the entry, 2. Import entries from XML file, 3. Update glossary 1. Detailed, 2. Simple, 3. Detailed 1. /server/moodledata/2 (with url http://localhost/file.php/2), 2. nowhere, 3. /server/moodledata/2 It is possible to comment glossary's entries and attach an image in the detailed view (and stored in /server/moodledata/2).
3 Chat 1. Update this chat 1. Detailed 1. /server/moodledata/2 It is not available to upload a file in the chat, but it is possible to associate an image to the chat.
4 Choice 1. Update choice 1. Detailed 1. /server/moodledata/2 No grading is possible.
5 Forum 1. Attached to the question/answer, 2. Update forum 1. Detailed, 2. Detailed 1. /server/moodledata/2, 2. /server/moodledata/2 It is possible to grade through the grades category of the administration of the course. It is possible to insert a picture in the detailed mode and stored in /server/moodledata/2.
6 Assignments 1. Uploading a file, 2. Grading, 3. Upload assignment 1. Simple, 2. Detailed, 3. Detailed 1. C:\server\moodledata\2\moddata\assignment\1\2, 2. /server/moodledata/2, 3. /server/moodledata/2 There is a special directory to store assignments.
7 Database 1. Adding entries of files / pictures, 2. Update this database 1. Simple, 2. Detailed 1. C:\server\moodledata\2\moddata\data\1\1\, 2. /server/moodledata/2 There is a special directory to store database entries. No grading is available.
8 Lesson 1. Attached to the question, 2. Import from file upload..., 3. Import from file already in course files... 1. Detailed, 2. Simple, 3. Detailed 1. /server/moodledata/2 (with url http://localhost/file.php/2), 2. nowhere, 3. /server/moodledata/2 No grading is available.
9 Survey None None None No grading is available
10 Wiki 1. Attached to the wiki, 2. Update wiki 1. Detailed, 2. Detailed 1. /server/moodledata/2, 2. /server/moodledata/2 No grading is available.
11 Journal 1. Attached to the journal, 2. Update journal 1. Detailed, 2. Detailed 1. /server/moodledata/2, 2. /server/moodledata/2 It is not possible to insert a file or image to the feedback.
12 Hotpotatoes 1. Update hot potatoes 1. Detailed 1. C:\server\moodledata\2 It is possible to grade through the grades category of the administration of the course. It is possible to insert a picture in the detailed mode and stored in /server/moodledata/2.
13 Exercise 1. Exercise description, 2. Attached exercise 1. Simple, 2. Simple 1. C:\server\moodledata\2\moddata\exercise\1, 2. C:\server\moodledata\2\moddata\exercise\1 There is a special directory to store submited exercises and the exercise description.
14 Workshop 1. Attach file to the answer, 2. Upload workshop 1. Detailed, 2. Detailed 1. /server/moodledata/2, 2. /server/moodledata/2 Grading is possible but it does not allow to attach images.

What recommendations could we provide developers so that ultimately it seems easier for teachers to make use of the files in a variety of contexts?

  1. It should be considered the two types of uploading types File Repository API.
  2. It should be considered that it must be considered possibilities where it could be possible to upload files like in the 1. grading system, 2. making comments, 3. adding an entry of an activity, 4. in the description of the activity, 5. import all the information of the activity module
  3. Usually there are two places to upload files: C:\server\moodledata\2\moddata\activitymodule (it is used when students should upload files/images for the assignment / exercise or other module activity) and C:\server\moodledata\2 (for storing other images associated to an activity module but the file is not the main issue in the activity)

Forecast of any usability issues coming out of implementing the file repository api

Are there places that are not using files that could?